|
@@ -110,7 +110,9 @@ define dep_autopatch
|
|
|
$(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 \
|
|
|
+ if [ -f $(DEPS_DIR)/$1/rebar.lock ]; then \
|
|
|
+ $(call dep_autopatch2,$1); \
|
|
|
+ elif [ 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 \
|
|
|
$(call dep_autopatch2,$(1)); \
|
|
@@ -133,7 +135,7 @@ define dep_autopatch2
|
|
|
$(call erlang,$(call dep_autopatch_appsrc_script.erl,$(1))); \
|
|
|
fi; \
|
|
|
$(call erlang,$(call dep_autopatch_appsrc.erl,$(1))); \
|
|
|
- if [ -f $(DEPS_DIR)/$(1)/rebar -o -f $(DEPS_DIR)/$(1)/rebar.config -o -f $(DEPS_DIR)/$(1)/rebar.config.script ]; then \
|
|
|
+ if [ -f $(DEPS_DIR)/$(1)/rebar -o -f $(DEPS_DIR)/$(1)/rebar.config -o -f $(DEPS_DIR)/$(1)/rebar.config.script -o -f $(DEPS_DIR)/$1/rebar.lock ]; then \
|
|
|
$(call dep_autopatch_fetch_rebar); \
|
|
|
$(call dep_autopatch_rebar,$(1)); \
|
|
|
else \
|