$(foreach hook,$($(PKG)_PRE_DOWNLOAD_HOOKS),$(call $(hook))$(sep))
ifeq ($(DL_MODE),DOWNLOAD)
# Only show the download message if it isn't already downloaded
- $(Q)if test ! -e $(DL_DIR)/$($(PKG)_SOURCE); then \
- $(call MESSAGE,"Downloading") ; \
- else \
- for p in $($(PKG)_PATCH) $($(PKG)_EXTRA_DOWNLOADS) ; do \
- if test ! -e $(DL_DIR)/`basename $$p` ; then \
- $(call MESSAGE,"Downloading") ; \
- break ; \
- fi ; \
- done ; \
- fi
+ $(Q)for p in $($(PKG)_SOURCE) $($(PKG)_PATCH) $($(PKG)_EXTRA_DOWNLOADS) ; do \
+ if test ! -e $(DL_DIR)/`basename $$p` ; then \
+ $(call MESSAGE,"Downloading") ; \
+ break ; \
+ fi ; \
+ done
endif
$(if $($(PKG)_SOURCE),$(call DOWNLOAD,$($(PKG)_SITE:/=)/$($(PKG)_SOURCE)))
$(foreach p,$($(PKG)_EXTRA_DOWNLOADS),$(call DOWNLOAD,$($(PKG)_SITE:/=)/$(p))$(sep))