summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Korsgaard <jacmet@sunsite.dk>2008-06-14 21:01:03 +0000
committerPeter Korsgaard <jacmet@sunsite.dk>2008-06-14 21:01:03 +0000
commit40af930421cb504f0d98c7c790260c83d47eca1c (patch)
tree62b46c885c9e80ec4025a04ad6d2afd8e85baf18
parent6eb60364c44be5113ff39abb1e0cacece9595d81 (diff)
package/Makefile.autotools.in: support 'make external-deps'
-rw-r--r--package/Makefile.autotools.in5
1 files changed, 5 insertions, 0 deletions
diff --git a/package/Makefile.autotools.in b/package/Makefile.autotools.in
index 09c30958c..b749baea4 100644
--- a/package/Makefile.autotools.in
+++ b/package/Makefile.autotools.in
@@ -130,6 +130,10 @@ TAR ?= tar
# Retrieve and unpack the archive
$(BUILD_DIR)/%/.stamp_downloaded:
+# support make external-deps
+ifeq ($(strip $(WGET)),$(TOPDIR)toolchain/wget-show-external-deps.sh)
+ $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
+else
$(call MESSAGE,"Downloading")
ifdef BR2_PRIMARY_SITE
-$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $(BR2_PRIMARY_SITE)/$($(PKG)_SOURCE)
@@ -138,6 +142,7 @@ endif
$(if $($(PKG)_PATCH),$(Q)test -e $(DL_DIR)/$($(PKG)_PATCH) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH))
$(Q)mkdir -p $(@D)
$(Q)touch $@
+endif
# Retrieve and unpack the archive
$(BUILD_DIR)/%/.stamp_extracted: