From 5fb76036a3ac1e9c22d5aaf9425929fac20236b3 Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Sun, 16 Jun 2019 19:26:18 +0200 Subject: [PATCH] BUILD: makefile: do not use echo -n On certain UNIXes (Solaris at least), echo -n displays "-n". Let's simply re-arrange the "if" block in the help message not to use it. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 94be6d1b3..d62fead7a 100644 --- a/Makefile +++ b/Makefile @@ -803,9 +803,11 @@ help: $(Q)sed -ne "/^[^#]*$$/q;s/^# \?\(.*\)/\1/p" Makefile $(Q)echo; \ if [ -n "$(TARGET)" ]; then \ - echo -n "Current TARGET: $(TARGET)"; \ - if [ -z "$(set_target_defaults)" ]; then echo -n " (custom target)";fi; \ - echo;\ + if [ -n "$(set_target_defaults)" ]; then \ + echo "Current TARGET: $(TARGET)"; \ + else \ + echo "Current TARGET: $(TARGET) (custom target)"; \ + fi; \ else \ echo "TARGET not set, you may pass 'TARGET=xxx' to set one among :";\ echo " linux-glibc, solaris, freebsd, netbsd, osx, openbsd,"; \ -- 2.47.3