Makefile.autotools.in: fix BR2_PRIMARY_SITE check

Empty strings gets defined to "", so check for that instead of if
the variable is defined.
This commit is contained in:
Peter Korsgaard 2008-06-26 11:43:02 +00:00
parent 5e873d3c7e
commit d2bed82def

View File

@ -135,7 +135,8 @@ ifneq ($(filter source,$(MAKECMDGOALS)),)
$(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)
else else
$(call MESSAGE,"Downloading") $(call MESSAGE,"Downloading")
ifdef BR2_PRIMARY_SITE ifneq ($(strip $(subst ",,$(BR2_PRIMARY_SITE))),)
#"))
-$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $(BR2_PRIMARY_SITE)/$($(PKG)_SOURCE) -$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $(BR2_PRIMARY_SITE)/$($(PKG)_SOURCE)
endif endif
$(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE) $(Q)test -e $(DL_DIR)/$($(PKG)_SOURCE) || $(WGET) -P $(DL_DIR) $($(PKG)_SITE)/$($(PKG)_SOURCE)