mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-12-22 01:14:53 +01:00
Makefile: Switch from echo to printf for better portability.
Some systems have an echo implementation which doesn't know how to interpret a sequence of "\n". The word is that printf should be much more portable, so let's try that instead.
This commit is contained in:
parent
650f6ac573
commit
af4928eb3a
1 changed files with 2 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -49,11 +49,11 @@ include Makefile.local
|
|||
# user how to enable verbose compiles.
|
||||
ifeq ($(V),)
|
||||
quiet_DOC := "Use \"$(MAKE) V=1\" to see the verbose compile lines.\n"
|
||||
quiet = @echo $(quiet_DOC)$(eval quiet_DOC:=)" $1 $@"; $($1)
|
||||
quiet = @printf $(quiet_DOC)$(eval quiet_DOC:=)" $1 $@\n"; $($1)
|
||||
endif
|
||||
# The user has explicitly enabled quiet compilation.
|
||||
ifeq ($(V),0)
|
||||
quiet = @echo " $1 $@"; $($1)
|
||||
quiet = @printf " $1 $@\n"; $($1)
|
||||
endif
|
||||
# Otherwise, print the full command line.
|
||||
quiet ?= $($1)
|
||||
|
|
Loading…
Reference in a new issue