package/Makefile.autotools.in: support 'make external-deps'
authorPeter Korsgaard <jacmet@sunsite.dk>
Sat, 14 Jun 2008 21:01:03 +0000 (21:01 -0000)
committerPeter Korsgaard <jacmet@sunsite.dk>
Sat, 14 Jun 2008 21:01:03 +0000 (21:01 -0000)
package/Makefile.autotools.in

index 09c30958c7766b0a15f2e3f6c7f2b69c89fd48e9..b749baea4fedf336f655af5057cfc6681c81c622 100644 (file)
@@ -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: