aboutsummaryrefslogtreecommitdiff
path: root/Makefile.local
diff options
context:
space:
mode:
authorJani Nikula <jani@nikula.org>2017-08-29 21:27:08 +0300
committerDavid Bremner <david@tethera.net>2017-08-29 22:05:37 -0300
commitab3ac525a01c21a726bc59b63a7a4c7c3f75b123 (patch)
tree876f8e1dc9867315ea2fd6943e92d996b973cbe5 /Makefile.local
parente027711148858b7aa2b3a4cd2617c87f38746181 (diff)
build: add optional target parameter to quiet variable function
Sometimes using $@ as the target in the quiet build lines can be confusing. Accept an optional second parameter in the quiet variable function to specify the target.
Diffstat (limited to 'Makefile.local')
-rw-r--r--Makefile.local4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile.local b/Makefile.local
index c51b9afb..2eb55e6c 100644
--- a/Makefile.local
+++ b/Makefile.local
@@ -182,11 +182,11 @@ verify-newer:
# user how to enable verbose compiles.
ifeq ($(V),)
quiet_DOC := "Use \"$(MAKE) V=1\" to see the verbose compile lines.\n"
-quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)"$1 $@\n"; $($(word 1, $(1)))
+quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)"$(1) $(or $(2),$@)\n"; $($(word 1, $(1)))
endif
# The user has explicitly enabled quiet compilation.
ifeq ($(V),0)
-quiet = @printf "$1 $@\n"; $($(word 1, $(1)))
+quiet = @printf "$(1) $(or $(2),$@)\n"; $($(word 1, $(1)))
endif
# Otherwise, print the full command line.
quiet ?= $($(word 1, $(1)))