aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-15 15:08:34 +0300
committerLoïc Hoguin <[email protected]>2015-05-15 15:08:34 +0300
commit273287ac756fdb20547b87388890478c2186ac27 (patch)
tree983a9cb018890a6a57f5501390ed0cf5e2fbed50 /core/deps.mk
parent43b92f305e59f9e7ea7adbc2bf5793723f069ac8 (diff)
downloaderlang.mk-273287ac756fdb20547b87388890478c2186ac27.tar.gz
erlang.mk-273287ac756fdb20547b87388890478c2186ac27.tar.bz2
erlang.mk-273287ac756fdb20547b87388890478c2186ac27.zip
Change the alternative rebar detection to avoid messages
The use of 'make -n' introduced some unwanted messages. This new solution doesn't have this problem.
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 4b31be6..5a7f542 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -62,7 +62,7 @@ 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 \
+ elif [ 0 != `find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk | xargs grep -ci rebar` ]; then \
$(call dep_autopatch2,$(1)); \
else \
$(call dep_autopatch_erlang_mk,$(1)); \