Avoid duplicate downloading, when rebuilding failed package like libgtk2
authorUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 6 Jul 2008 06:23:21 +0000 (06:23 -0000)
committerUlf Samuelsson <ulf.samuelsson@atmel.com>
Sun, 6 Jul 2008 06:23:21 +0000 (06:23 -0000)
package/Makefile.autotools.in

index 16fc371927aa6d8c95ee1025893ca6ad67ce36aa..574ef1cf56e53529f7df1f55d1d3b6aff647b06d 100644 (file)
@@ -132,7 +132,7 @@ TAR ?= tar
 $(BUILD_DIR)/%/.stamp_downloaded:
 # support make source-check/external-deps
 ifeq ($(MAKELEVEL),1)
-       $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
+       -$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
        $(if $($(PKG)_PATCH),$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_PATCH))
 else
        $(call MESSAGE,"Downloading")
@@ -395,3 +395,5 @@ endif
 endef
 
 # :mode=makefile:
+
+