From ec976404fcb9873b7a10df9345960f0e8f74146c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Hoguin?= Date: Fri, 15 May 2015 11:34:12 +0300 Subject: Add another test for rebar detection If we can't find "rebar" in the Makefile, we now try 'make -n' and check the output. This will catch cases where the "rebar" stuff is defined in included files. --- core/deps.mk | 2 ++ 1 file changed, 2 insertions(+) (limited to 'core/deps.mk') diff --git a/core/deps.mk b/core/deps.mk index 1d767cf..4b31be6 100644 --- a/core/deps.mk +++ b/core/deps.mk @@ -62,6 +62,8 @@ define dep_autopatch if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \ if [ 0 != `grep -ci rebar $(DEPS_DIR)/$(1)/Makefile` ]; then \ $(call dep_autopatch2,$(1)); \ + elif [ 0 != `cd $(DEPS_DIR)/$(1)/ && make -n | grep -ci rebar` ]; then \ + $(call dep_autopatch2,$(1)); \ else \ $(call dep_autopatch_erlang_mk,$(1)); \ fi \ -- cgit v1.2.3