aboutsummaryrefslogtreecommitdiffstats
path: root/core/deps.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2015-09-23 18:15:40 +0200
committerLoïc Hoguin <[email protected]>2015-09-23 18:15:40 +0200
commitdd4b1fd93e45d6c645aae68dfdd6658697a13e04 (patch)
treec61253b009b7da4244209b95611bd551020e5a9e /core/deps.mk
parentb60900f47650edbeb575ba2740db48e99afbbd30 (diff)
downloaderlang.mk-dd4b1fd93e45d6c645aae68dfdd6658697a13e04.tar.gz
erlang.mk-dd4b1fd93e45d6c645aae68dfdd6658697a13e04.tar.bz2
erlang.mk-dd4b1fd93e45d6c645aae68dfdd6658697a13e04.zip
Implement, add test for dep_$(DEP)_commit variables
Diffstat (limited to 'core/deps.mk')
-rw-r--r--core/deps.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/deps.mk b/core/deps.mk
index fe70c26..8134cb7 100644
--- a/core/deps.mk
+++ b/core/deps.mk
@@ -533,7 +533,8 @@ endef
dep_name = $(if $(dep_$(1)),$(1),$(pkg_$(1)_name))
dep_repo = $(patsubst git://github.com/%,https://github.com/%, \
$(if $(dep_$(1)),$(word 2,$(dep_$(1))),$(pkg_$(1)_repo)))
-dep_commit = $(if $(dep_$(1)),$(word 3,$(dep_$(1))),$(pkg_$(1)_commit))
+dep_commit = $(if $(dep_$(1)_commit),$(dep_$(1)_commit),\
+ $(if $(dep_$(1)),$(word 3,$(dep_$(1))),$(pkg_$(1)_commit)))
define dep_target
$(DEPS_DIR)/$(1):