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

Remove ebin/$(DEP).app when patching rebar out

Seems like it works fine for all packages and fix issues
with some that wouldn't compile properly otherwise.
Loïc Hoguin 10 лет назад
Родитель
Сommit
8ce44651d5
1 измененных файлов с 2 добавлено и 1 удалено
  1. 2 1
      core/deps.mk

+ 2 - 1
core/deps.mk

@@ -137,7 +137,8 @@ define dep_autopatch_rebar
 	if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
 		mv $(DEPS_DIR)/$(1)/Makefile $(DEPS_DIR)/$(1)/Makefile.orig.mk; \
 	fi; \
-	$(call erlang,$(call dep_autopatch_rebar.erl,$(1)))
+	$(call erlang,$(call dep_autopatch_rebar.erl,$(1))); \
+	rm -f $(DEPS_DIR)/$(1)/ebin/$(1).app
 endef
 
 define dep_autopatch_rebar.erl