improved implementation of the download-* commands

This commit is contained in:
Volker Grabsch 2009-06-17 16:40:42 +02:00
parent 3f0708e40f
commit ae49cbbec3
1 changed files with 4 additions and 1 deletions

View File

@ -74,7 +74,10 @@ download: $(addprefix download-,$(PKG_RULES))
define PKG_RULE
.PHONY: download-$(1)
download-$(1): $(TOP_DIR)/src/$(1).mk $(addprefix download-,$($(1)_DEPS))
download-$(1): $(addprefix download-only-,$($(1)_DEPS)) download-only-$(1)
.PHONY: download-only-$(1)
download-only-$(1): $(TOP_DIR)/src/$(1).mk
[ -d '$(PKG_DIR)' ] || mkdir -p '$(PKG_DIR)'
if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \
$(call DOWNLOAD_PKG_ARCHIVE,$(1)); \