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.
This commit is contained in:
Willy Tarreau 2019-06-16 19:26:18 +02:00
parent f8cc19a1fe
commit 5fb76036a3

View File

@ -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,"; \