aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-05-16 15:17:36 +0300
committerLoïc Hoguin <[email protected]>2015-05-16 15:17:36 +0300
commitdfb186c781493e8c88ea396ec1c540a3bda68105 (patch)
tree3f8acd20c279c718590ccde580fc38066ee2710d /core/deps.mk
parent245fa2c0b8eff5cbd1fbf07cec78d3005eeded0f (diff)
downloaderlang.mk-dfb186c781493e8c88ea396ec1c540a3bda68105.tar.gz
erlang.mk-dfb186c781493e8c88ea396ec1c540a3bda68105.tar.bz2
erlang.mk-dfb186c781493e8c88ea396ec1c540a3bda68105.zip
Ignore Makefiles that include non-existing .mk files
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 86c196a..dfbe5ce 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -60,7 +60,9 @@ distclean:: distclean-deps distclean-pkg
# in practice only Makefile is needed so far.
define dep_autopatch
if [ -f $(DEPS_DIR)/$(1)/Makefile ]; then \
- if [ 0 != `grep -ci rebar $(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 \
$(call dep_autopatch2,$(1)); \
elif [ 0 != `find $(DEPS_DIR)/$(1)/ -type f -name \*.mk -not -name erlang.mk | xargs grep -ci rebar` ]; then \
$(call dep_autopatch2,$(1)); \