|
@@ -82,7 +82,10 @@ endif
|
|
|
# While Makefile file could be GNUmakefile or makefile,
|
|
|
# in practice only Makefile is needed so far.
|
|
|
define dep_autopatch
|
|
|
- if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
|
|
|
+ if [ -f $(DEPS_DIR)/$(1)/erlang.mk ]; then \
|
|
|
+ $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
|
|
|
+ $(call dep_autopatch_erlang_mk,$(1)); \
|
|
|
+ elif [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
|
|
|
if [ 0 != `grep -c "include ../\w*\.mk" $(DEPS_DIR)/$(1)/Makefile` ]; then \
|
|
|
$(call dep_autopatch2,$(1)); \
|
|
|
elif [ 0 != `grep -ci rebar $(DEPS_DIR)/$(1)/Makefile` ]; then \
|
|
@@ -90,12 +93,7 @@ define dep_autopatch
|
|
|
elif [ -n "`find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk -exec grep -i rebar '{}' \;`" ]; then \
|
|
|
$(call dep_autopatch2,$(1)); \
|
|
|
else \
|
|
|
- if [ -f $(DEPS_DIR)/$(1)/erlang.mk ]; then \
|
|
|
- $(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
|
|
|
- $(call dep_autopatch_erlang_mk,$(1)); \
|
|
|
- else \
|
|
|
- $(call erlang,$(call dep_autopatch_app.erl,$(1))); \
|
|
|
- fi \
|
|
|
+ $(call erlang,$(call dep_autopatch_app.erl,$(1))); \
|
|
|
fi \
|
|
|
else \
|
|
|
if [ ! -d $(DEPS_DIR)/$(1)/src/ ]; then \
|