diff options
author | Volker Grabsch <vog@notjusthosting.com> | 2009-06-16 19:57:25 (GMT) |
---|---|---|
committer | Volker Grabsch <vog@notjusthosting.com> | 2009-06-16 19:57:25 (GMT) |
commit | cbebadf30138395df7874dad8c3b2eedc6c041cc (patch) | |
tree | d221024f1130b8983d1817341e493c39237e22ac | |
parent | 625f776006656a62f9481575ab228bc30fe16173 (diff) | |
download | mxe-cbebadf30138395df7874dad8c3b2eedc6c041cc.zip mxe-cbebadf30138395df7874dad8c3b2eedc6c041cc.tar.gz mxe-cbebadf30138395df7874dad8c3b2eedc6c041cc.tar.bz2 |
new command "make download"
-rw-r--r-- | Makefile | 17 | ||||
-rw-r--r-- | doc/index.html | 30 |
2 files changed, 42 insertions, 5 deletions
@@ -69,18 +69,25 @@ DOWNLOAD_PKG_ARCHIVE = \ .PHONY: all all: $(PKG_RULES) +.PHONY: download +download: $(addprefix download-,$(PKG_RULES)) + define PKG_RULE +.PHONY: download-$(1) +download-$(1): $(TOP_DIR)/src/$(1).mk $(addprefix download-,$($(1)_DEPS)) + [ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)' + if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ + $(call DOWNLOAD_PKG_ARCHIVE,$(1)); \ + $(call CHECK_PKG_ARCHIVE,$(1)) || { echo 'Wrong checksum!'; exit 1; }; \ + fi + .PHONY: $(1) $(1): $(PREFIX)/installed-$(1) $(PREFIX)/installed-$(1): $(TOP_DIR)/src/$(1).mk \ + download-$(1) \ $(wildcard $(TOP_DIR)/src/$(1)-*.patch) \ $(addprefix $(PREFIX)/installed-,$($(1)_DEPS)) [ -d '$(PREFIX)' ] || mkdir -p '$(PREFIX)' - [ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)' - if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ - $(call DOWNLOAD_PKG_ARCHIVE,$(1)); \ - $(call CHECK_PKG_ARCHIVE,$(1)) || { echo 'Wrong checksum!'; exit 1; }; \ - fi $(if $(value $(1)_BUILD), rm -rf '$(2)' mkdir -p '$(2)' diff --git a/doc/index.html b/doc/index.html index b56daa5..2162e22 100644 --- a/doc/index.html +++ b/doc/index.html @@ -377,6 +377,10 @@ AR=$(CROSS)ar</pre> <p> Almost all packages are updated to their latest version. </p> + + <p> + The command "make download" is implemented. + </p> </dd> <dt>Old Releases</dt> @@ -530,6 +534,10 @@ pfexec python setup.py install</pre> <div class="section"> <h2 id="usage">Usage</h2> + <p> + All build commands also download the packages if necessary. + </p> + <dl class="usage"> <dt>make</dt> @@ -563,6 +571,28 @@ pfexec python setup.py install</pre> each with up to 2 compiler processes running in parallel </dd> + <dt>make download</dt> + + <dd> + download all packages, + non-parallel, + such that subsequent builds work without internet access + </dd> + + <dt>make download-foo download-bar</dt> + + <dd> + download packages "foo", "bar" and their dependencies, + non-parallel + </dd> + + <dt>make download-foo download-bar -j 4</dt> + + <dd> + download packages "foo", "bar" and their dependencies, + where up to 4 packages are downloaded in parallel + </dd> + <dt>make strip</dt> <dd> |