From: Willy Tarreau Date: Fri, 14 Jun 2019 13:52:01 +0000 (+0200) Subject: BUILD: makefile: further clarify the "help" output and list targets X-Git-Tag: v2.0.0~22 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=648fa9deb4093477b931c7cbc64657806de6f569;p=thirdparty%2Fhaproxy.git BUILD: makefile: further clarify the "help" output and list targets When a target is not set we now also list the known ones. A minor alignment issue in the output was also addressed. --- diff --git a/Makefile b/Makefile index 0e123e9374..4785b6d62d 100644 --- a/Makefile +++ b/Makefile @@ -107,8 +107,7 @@ # VERSION : force haproxy version reporting. # SUBVERS : add a sub-version (eg: platform, model, ...). # VERDATE : force haproxy's release date. -# -# VTEST_PROGRAM : location of the vtest program to run reg-tests. +# VTEST_PROGRAM : location of the vtest program to run reg-tests. # verbosity: pass V=1 for verbose shell invocation V = 0 @@ -822,10 +821,12 @@ help: if [ -n "$(TARGET)" ]; then \ echo -n "Current TARGET: $(TARGET)"; \ if [ -z "$(set_target_defaults)" ]; then echo -n " (custom target)";fi; \ + echo;\ else \ - echo -n "TARGET not set."; \ - fi; \ - echo + echo "TARGET not set, you may pass 'TARGET=xxx' to set one among :";\ + echo " linux2628, linux26, linux24, linux24e, linux22, solaris, freebsd,"; \ + echo " netbsd, osx, openbsd, aix51, aix52, cygwin, haiku, generic, custom"; \ + fi $(Q)echo;echo "Enabled features for TARGET '$(TARGET)' (disable with 'USE_xxx=') :" $(Q)set -- $(foreach opt,$(patsubst USE_%,%,$(use_opts)),$(if $(USE_$(opt)),$(opt),)); echo " $$*" | (fmt || cat) 2>/dev/null $(Q)echo;echo "Disabled features for TARGET '$(TARGET)' (enable with 'USE_xxx=1') :"