aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk10
1 files changed, 9 insertions, 1 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 103426d..4a9c9ac 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -66,7 +66,11 @@ define dep_autopatch
$(call dep_autopatch_erlang_mk,$(1)); \
fi \
else \
- $(call dep_autopatch2,$(1)); \
+ if [ ! -d $(DEPS_DIR)/$(1)/src/ ]; then \
+ $(call dep_autopatch_noop,$(1)); \
+ else \
+ $(call dep_autopatch2,$(1)); \
+ fi \
fi
endef
@@ -78,6 +82,10 @@ define dep_autopatch2
fi
endef
+define dep_autopatch_noop
+ printf "noop:\n" > $(DEPS_DIR)/$(1)/Makefile
+endef
+
# Overwrite erlang.mk with the current file by default.
ifeq ($(NO_AUTOPATCH_ERLANG_MK),)
define dep_autopatch_erlang_mk