aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2016-11-20 17:20:46 +0100
committerLoïc Hoguin <[email protected]>2016-11-20 17:46:50 +0100
commit14b92a1ac83a2c0bc1c98014d65bb90bc2e1efb2 (patch)
treec1a99d83a5161c3ea6084e86bce5924130378324 /core/deps.mk
parent8a2ccf7a8f8d1f9c85afa81f339ba926330a71fc (diff)
downloaderlang.mk-14b92a1ac83a2c0bc1c98014d65bb90bc2e1efb2.tar.gz
erlang.mk-14b92a1ac83a2c0bc1c98014d65bb90bc2e1efb2.tar.bz2
erlang.mk-14b92a1ac83a2c0bc1c98014d65bb90bc2e1efb2.zip
Only delete ebin when fetching Erlang.mk projects
Erlang.mk projects either have a .app.src, or just the Makefile with an optional .app file for compatibility.
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 747bb7b..3cbcd45 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -106,6 +106,7 @@ endif
# in practice only Makefile is needed so far.
define dep_autopatch
if [ -f $(DEPS_DIR)/$(1)/erlang.mk ]; then \
+ rm -rf $(DEPS_DIR)/$1/ebin/; \
$(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
$(call dep_autopatch_erlang_mk,$(1)); \
elif [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
@@ -555,7 +556,6 @@ ifeq ($(filter $(1),$(NO_AUTOPATCH)),)
$$(call dep_autopatch,$(DEP_NAME)) \
fi
endif
- $(verbose) rm -rf $(DEPS_DIR)/$(DEP_NAME)/ebin/
endef
$(foreach dep,$(BUILD_DEPS) $(DEPS),$(eval $(call dep_target,$(dep))))