aboutsummaryrefslogtreecommitdiffhomepage
path: root/Makefile
diff options
context:
space:
mode:
authorGravatar Carl Worth <cworth@cworth.org>2009-12-01 16:38:47 -0800
committerGravatar Carl Worth <cworth@cworth.org>2009-12-01 16:38:47 -0800
commitaf4928eb3a0a40d7f3d2a3475289da1df5b9ce4f (patch)
treecd911b86111a132aace253ea5a0f004cf880a9f0 /Makefile
parent650f6ac573ae6d08dbd2752fe58e670b28fee957 (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 2 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 17be8b48..7a9e44c6 100644
--- a/Makefile
+++ b/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)