summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2024-03-05 15:03:40 +0000
committerAndrew Clayton <a.clayton@nginx.com>2024-03-09 01:40:24 +0000
commitf55fa70c6935f0fa0ab5964830de83ae44006edb (patch)
tree485db26397c8001426be80d628c3605e585a3480
parentd23812b8f4376ab05af701e07ad16ff7b1d3bbea (diff)
Add a help target to the root Makefile
This adds a help target to the Makefile in the repository root that shows what variables are available to control the make/build behaviour. It currently looks like $ make help Variables to control make/build behaviour: make V=1 ... - Enables verbose output make D=1 ... - Enables debug builds (-O0) make E=0 ... - Disables -Werror Variables can be combined. Reviewed-by: Alejandro Colomar <alx@kernel.org> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
-rw-r--r--auto/make10
1 files changed, 10 insertions, 0 deletions
diff --git a/auto/make b/auto/make
index 6c6d7e94..28f8bec5 100644
--- a/auto/make
+++ b/auto/make
@@ -540,4 +540,14 @@ include $NXT_MAKEFILE
clean:
rm -rf $NXT_BUILD_DIR *.dSYM Makefile
+.PHONY: help
+help:
+ @echo "Variables to control make/build behaviour:"
+ @echo
+ @echo " make V=1 ... - Enables verbose output"
+ @echo " make D=1 ... - Enables debug builds (-O0)"
+ @echo " make E=0 ... - Disables -Werror"
+ @echo
+ @echo " Variables can be combined."
+
END