aboutsummaryrefslogtreecommitdiffstats
path: root/erlang.mk
diff options
context:
space:
mode:
authorLoïc Hoguin <[email protected]>2013-08-15 15:35:53 +0200
committerLoïc Hoguin <[email protected]>2013-08-15 15:35:53 +0200
commit8709a3593629c3dc732ee2a16be11a4e06943dca (patch)
tree5a74a195f1148e3d66a7de0f73f5c5628d4eed24 /erlang.mk
parent9a6989a611e860fc4e4aded98040e7616efb1308 (diff)
downloaderlang.mk-8709a3593629c3dc732ee2a16be11a4e06943dca.tar.gz
erlang.mk-8709a3593629c3dc732ee2a16be11a4e06943dca.tar.bz2
erlang.mk-8709a3593629c3dc732ee2a16be11a4e06943dca.zip
Fix downloading of packages file when fetching pkg:// deps
Previous code was downloading it a for each dep that used pkg://.
Diffstat (limited to 'erlang.mk')
-rw-r--r--erlang.mk2
1 files changed, 1 insertions, 1 deletions
diff --git a/erlang.mk b/erlang.mk
index df4420e..40e2695 100644
--- a/erlang.mk
+++ b/erlang.mk
@@ -120,7 +120,7 @@ define get_dep
ifeq (,$(findstring pkg://,$(word 1,$(dep_$(1)))))
git clone -n -- $(word 1,$(dep_$(1))) $(DEPS_DIR)/$(1)
else
- $(if $(wildcard $(PKG_FILE)),,$(call get_pkg_file))
+ if [ ! -f $(PKG_FILE) ]; then $(call get_pkg_file); fi
git clone -n -- `awk 'BEGIN { FS = "\t" }; \
$$$$1 == "$(subst pkg://,,$(word 1,$(dep_$(1))))" { print $$$$2 }' \
$(PKG_FILE)` $(DEPS_DIR)/$(1)