aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/deps.mk b/core/deps.mk
index 2c6f6d5..96270a1 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -25,9 +25,13 @@ export REBAR_DEPS_DIR
# They both use the core_dep_plugin macro.
define core_dep_plugin
+ifeq ($(2),$(PROJECT))
+-include $$(patsubst $(PROJECT)/%,%,$(1))
+else
-include $(DEPS_DIR)/$(1)
$(DEPS_DIR)/$(1): $(DEPS_DIR)/$(2) ;
+endif
endef
DEP_EARLY_PLUGINS ?=