aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-24 12:38:15 +0200
committerLoïc Hoguin <[email protected]>2015-09-24 12:38:15 +0200
commitb3bfa828d54d3fbe7e2364b513f509f04059d211 (patch)
tree8e4a8bb8549755ca75870a64c7ebf8040d85ef5c /core/deps.mk
parentff042f786feab7358684d480a46614221a4618b6 (diff)
downloaderlang.mk-b3bfa828d54d3fbe7e2364b513f509f04059d211.tar.gz
erlang.mk-b3bfa828d54d3fbe7e2364b513f509f04059d211.tar.bz2
erlang.mk-b3bfa828d54d3fbe7e2364b513f509f04059d211.zip
Add tests for custom, fail (bad and unknown) and legacy fetch methods
Also improves the handling of the legacy fetch method. It is now enabled only for dependencies, and not for the top-level application. This should force Erlang.mk users to update their definitions.
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 94a45e4..91c42f9 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -524,7 +524,7 @@ define dep_fetch
$(if $(dep_$(1)), \
$(if $(dep_fetch_$(word 1,$(dep_$(1)))), \
$(word 1,$(dep_$(1))), \
- legacy), \
+ $(if $(IS_DEP),legacy,fail)), \
$(if $(filter $(1),$(PACKAGES)), \
$(pkg_$(1)_fetch), \
fail))