Makefile: add target-specific dependencies to download-foo rules also

This commit is contained in:
Tony Theodore 2013-08-06 22:51:16 +10:00
parent 8c46d829bf
commit 641c765f31
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ $(foreach TARGET,$(MXE_TARGETS),$(eval $(call TARGET_RULE,$(TARGET))))
define PKG_RULE
.PHONY: download-$(1)
download-$(1):: $(addprefix download-,$($(1)_DEPS))
download-$(1):: $(addprefix download-,$($(1)_DEPS) $($(1)_DEPS_$(3)))
if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
$(call DOWNLOAD_PKG_ARCHIVE,$(1)); \
$(call CHECK_PKG_ARCHIVE,$(1)) || { echo 'Wrong checksum!'; exit 1; }; \