diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -488,6 +488,7 @@ download-only-$(1): download-only-$($(1)_FILE) download-only-$($(1)_FILE):: $(and $($(1)_URL), @[ -d '$(LOG_DIR)/$(TIMESTAMP)' ] || mkdir -p '$(LOG_DIR)/$(TIMESTAMP)' + @$$(if $$(REMOVE_DOWNLOAD),rm -f '$(PKG_DIR)/$($(1)_FILE)') @if ! $(call CHECK_PKG_ARCHIVE,$(1)); then \ $(PRINTF_FMT) '[download]' '$(1)' | $(RTRIM); \ (set -x; $(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)-download'; \ @@ -506,8 +507,14 @@ download-only-$($(1)_FILE):: exit 1; \ fi; \ fi) + +.PHONY: prepare-pkg-source-$(1) +prepare-pkg-source-$(1): download-only-$(1) + rm -rf '$(2)' + mkdir -p '$(2)' + $$(call PREPARE_PKG_SOURCE,$(1),$(2)) endef -$(foreach PKG,$(PKGS),$(eval $(call PKG_RULE,$(PKG)))) +$(foreach PKG,$(PKGS),$(eval $(call PKG_RULE,$(PKG),$(call TMP_DIR,$(PKG))))) # disable networking during build-only rules for reproducibility ifeq ($(findstring darwin,$(BUILD)),) |