diff options
author | Tony Theodore <tonyt@logyst.com> | 2017-11-25 16:32:33 (GMT) |
---|---|---|
committer | Tony Theodore <tonyt@logyst.com> | 2017-12-22 21:19:00 (GMT) |
commit | 45e66ce85f98ac4762311e2288539a2d999e9246 (patch) | |
tree | 371f58cf659b38094afdb61dd8800db8816a11df | |
parent | 6851997a291b7f2d53136b0dc17a0b2014438468 (diff) | |
download | mxe-45e66ce85f98ac4762311e2288539a2d999e9246.zip mxe-45e66ce85f98ac4762311e2288539a2d999e9246.tar.gz mxe-45e66ce85f98ac4762311e2288539a2d999e9246.tar.bz2 |
Makefile: print download filename instead of pkg
-rw-r--r-- | Makefile | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -595,6 +595,9 @@ $(eval $(PKG)_PATCHES := $(PKG_PATCHES)) # or dependencies (see bfd/binutils openscenegraph/openthreads qwt/qwt_qt4). # Use a double-colon rule to allow multiple definitions: # https://www.gnu.org/software/make/manual/html_node/Double_002dColon.html +# N.B. the `::` rule will use values from first lexical definition e.g.: +# $ make download-only-binutils +# [download] bfd .PHONY: download-only-$($(1)_FILE) download-only-$(1): download-only-$($(1)_FILE) download-only-$($(1)_FILE):: @@ -602,7 +605,7 @@ download-only-$($(1)_FILE):: @[ -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); \ + $(PRINTF_FMT) '[download]' '$($(1)_FILE)' | $(RTRIM); \ ($(call DOWNLOAD_PKG_ARCHIVE,$(1))) &> '$(LOG_DIR)/$(TIMESTAMP)/$(1)-download'; \ grep 'MXE Warning' '$(LOG_DIR)/$(TIMESTAMP)/$(1)-download'; \ ln -sf '$(TIMESTAMP)/$(1)-download' '$(LOG_DIR)/$(1)-download'; \ |