From 30d2e78632bffca4edbb6f5db30a3d07086c0908 Mon Sep 17 00:00:00 2001 From: Timothy Gu Date: Thu, 21 Aug 2014 19:53:45 -0700 Subject: Add target download-only-* to ease developing Signed-off-by: Timothy Gu Conflicts: Makefile --- Makefile | 6 +++++- index.html | 7 +++++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 5520a78..9e71959 100644 --- a/Makefile +++ b/Makefile @@ -178,7 +178,11 @@ $(foreach TARGET,$(MXE_TARGETS),$(eval $(call TARGET_RULE,$(TARGET)))) define PKG_RULE .PHONY: download-$(1) -download-$(1):: $(addprefix download-,$($(1)_DEPS)) +download-$(1):: $(addprefix download-,$(value $(call LOOKUP_PKG_RULE,$(1),DEPS,$(3)))) \ + download-only-$(1) + +.PHONY: download-only-$(1) +download-only-$(1):: if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ $(call DOWNLOAD_PKG_ARCHIVE,$(1)); \ $(call CHECK_PKG_ARCHIVE,$(1)) || { echo 'Wrong checksum!'; exit 1; }; \ diff --git a/index.html b/index.html index 47c42ab..b0aee1f 100644 --- a/index.html +++ b/index.html @@ -1036,6 +1036,13 @@ local-pkg-list: $(LOCAL_PKG_LIST) where up to 4 packages are downloaded in parallel +
make download-only-foo download-only-bar
+ +
+ download packages "foo", "bar", without their dependencies, + non-parallel +
+
make clean
-- cgit v0.12