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-30 00:13:24 (GMT)
commit30d2e78632bffca4edbb6f5db30a3d07086c0908 (patch)
treed1c6e52ef1e8c117cd7be5e3fb34dc000c3bbe00
parentc8ee03544d0b9f2b91ff899040ee5f9b92625011 (diff)
downloadmxe-30d2e78632bffca4edbb6f5db30a3d07086c0908.zip
mxe-30d2e78632bffca4edbb6f5db30a3d07086c0908.tar.gz
mxe-30d2e78632bffca4edbb6f5db30a3d07086c0908.tar.bz2
Add target download-only-* to ease developing
Signed-off-by: Timothy Gu <timothygu99@gmail.com> Conflicts: Makefile
-rw-r--r--Makefile6
-rw-r--r--index.html7
2 files changed, 12 insertions, 1 deletions
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)</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>