mirror of https://git.wownero.com/dsc/mxe.git
improved implementation of the download-* commands
This commit is contained in:
parent
3f0708e40f
commit
ae49cbbec3
5
Makefile
5
Makefile
|
@ -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)); \
|
||||
|
|
Loading…
Reference in New Issue