Skip to content

Commit cbd3b15

Browse files
committed
Use double-colon for common targets (dist-clean, clean, env).
Using a double-colon allows Makefiles using this one to add steps to these common targets, rather than overwrite them. Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
1 parent 2baf9c6 commit cbd3b15

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

conda.mk

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ $(CONDA_ENV_PYTHON): $(ENVIRONMENT_FILE) $(REQUIREMENTS_FILE) | $(CONDA_PYTHON)
128128
$(IN_CONDA_ENV_BASE) conda env update --name $(CONDA_ENV_NAME) --file $(ENVIRONMENT_FILE)
129129
$(TOUCH) "$(CONDA_ENV_PYTHON)"
130130

131-
env: $(CONDA_ENV_PYTHON)
131+
env:: $(CONDA_ENV_PYTHON)
132132
$(IN_CONDA_ENV) conda info
133133

134134
.PHONY: env
@@ -138,12 +138,12 @@ enter: $(CONDA_ENV_PYTHON)
138138

139139
.PHONY: enter
140140

141-
clean:
141+
clean::
142142
rm -rf $(CONDA_DIR)
143143

144144
.PHONY: clean
145145

146-
dist-clean:
146+
dist-clean::
147147
rm -rf $(ENV_DIR)
148148

149149
.PHONY: dist-clean

0 commit comments

Comments
 (0)