summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimothy Gu <timothygu99@gmail.com>2014-08-22 02:53:45 (GMT)
committerTimothy Gu <timothygu99@gmail.com>2014-08-22 02:53:45 (GMT)
commit55558ecdd3f9dac6b5217dd062e4f551ab4ea99d (patch)
treec065f3796e30f4480cfa65466c03cb00e096730e
parent2722b35587bee4ec2f0c47f9c6f00186e5685ad9 (diff)
downloadmxe-55558ecdd3f9dac6b5217dd062e4f551ab4ea99d.zip
mxe-55558ecdd3f9dac6b5217dd062e4f551ab4ea99d.tar.gz
mxe-55558ecdd3f9dac6b5217dd062e4f551ab4ea99d.tar.bz2
Add target download-only-* to ease developing
Signed-off-by: Timothy Gu <timothygu99@gmail.com>
-rw-r--r--Makefile6
-rw-r--r--index.html7
2 files changed, 12 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9ccc04c..33fbfb8 100644
--- a/Makefile
+++ b/Makefile
@@ -318,7 +318,11 @@ $(foreach TARGET,$(MXE_TARGETS),$(eval $(call TARGET_RULE,$(TARGET))))
define PKG_RULE
.PHONY: download-$(1)
-download-$(1):: $(addprefix download-,$(value $(call LOOKUP_PKG_RULE,$(1),DEPS,$(3))))
+download-$(1):: $(addprefix download-,$(value $(call LOOKUP_PKG_RULE,$(1),DEPS,$(3)))) \
+ download-only-$(1)
+
+.PHONY: download-only-$(1)
+download-only-$(1)::
@[ -d '$(LOG_DIR)/$(TIMESTAMP)' ] || mkdir -p '$(LOG_DIR)/$(TIMESTAMP)'
@if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
echo '[download] $(1)'; \
diff --git a/index.html b/index.html
index a3bdd54..5c16030 100644
--- a/index.html
+++ b/index.html
@@ -973,6 +973,13 @@ local-pkg-list: $(LOCAL_PKG_LIST)</pre>
where up to 4 packages are downloaded in parallel
</dd>
+ <dt>make download-only-foo download-only-bar</dt>
+
+ <dd>
+ download packages "foo", "bar", without their dependencies,
+ non-parallel
+ </dd>
+
<dt>make clean</dt>
<dd>