Browse Source

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 years ago
parent
commit
8ce44651d5
1 changed files with 2 additions and 1 deletions
  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 \
 	if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
 		mv $(DEPS_DIR)/$(1)/Makefile $(DEPS_DIR)/$(1)/Makefile.orig.mk; \
 		mv $(DEPS_DIR)/$(1)/Makefile $(DEPS_DIR)/$(1)/Makefile.orig.mk; \
 	fi; \
 	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
 endef
 
 
 define dep_autopatch_rebar.erl
 define dep_autopatch_rebar.erl