mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-22 02:48:08 +01:00
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.
This commit is contained in:
parent
e027711148
commit
ab3ac525a0
1 changed files with 2 additions and 2 deletions
|
@ -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)))
|
||||
|
|
Loading…
Reference in a new issue