Просмотр исходного кода

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.
Loïc Hoguin 8 лет назад
Родитель
Сommit
14b92a1ac8
1 измененных файлов с 1 добавлено и 1 удалено
  1. 1 1
      core/deps.mk

+ 1 - 1
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))))