From: William Lallemand Date: Thu, 13 Dec 2018 13:02:25 +0000 (+0100) Subject: BUILD: Makefile: Implements the help target X-Git-Tag: v1.9-dev11~71 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=f1b60f78e0d51bc2ae2da61d1926e39056fa6a8f;p=thirdparty%2Fhaproxy.git BUILD: Makefile: Implements the help target Use the header of the Makefile to output the help target. --- diff --git a/Makefile b/Makefile index 587bc04867..4e909e36ff 100644 --- a/Makefile +++ b/Makefile @@ -966,6 +966,9 @@ LIB_EBTREE = $(EBTREE_DIR)/libebtree.a INCLUDES = $(wildcard include/*/*.h ebtree/*.h) DEP = $(INCLUDES) .build_opts +help: + $(Q)sed -ne "/^[^#]*$$/q;s/^#\(.*\)/\1/p" Makefile + # Used only to force a rebuild if some build options change .build_opts: $(shell rm -f .build_opts.new; echo \'$(TARGET) $(BUILD_OPTIONS) $(VERBOSE_CFLAGS)\' > .build_opts.new; if cmp -s .build_opts .build_opts.new; then rm -f .build_opts.new; else mv -f .build_opts.new .build_opts; fi)