]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUILD: makefile: further clarify the "help" output and list targets
authorWilly Tarreau <w@1wt.eu>
Fri, 14 Jun 2019 13:52:01 +0000 (15:52 +0200)
committerWilly Tarreau <w@1wt.eu>
Sat, 15 Jun 2019 15:40:40 +0000 (17:40 +0200)
When a target is not set we now also list the known ones. A minor
alignment issue in the output was also addressed.

Makefile

index 0e123e9374c9c0372cb6d3dd74bb864e6ae9159c..4785b6d62d0c23b55fef65015c18608133cde9a4 100644 (file)
--- a/Makefile
+++ b/Makefile
 #   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') :"