diff options
author | Andrew Clayton <a.clayton@nginx.com> | 2024-03-05 15:03:40 +0000 |
---|---|---|
committer | Andrew Clayton <a.clayton@nginx.com> | 2024-03-09 01:40:24 +0000 |
commit | f55fa70c6935f0fa0ab5964830de83ae44006edb (patch) | |
tree | 485db26397c8001426be80d628c3605e585a3480 | |
parent | d23812b8f4376ab05af701e07ad16ff7b1d3bbea (diff) | |
download | unit-f55fa70c6935f0fa0ab5964830de83ae44006edb.tar.gz unit-f55fa70c6935f0fa0ab5964830de83ae44006edb.tar.bz2 |
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/make | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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 |