From f55fa70c6935f0fa0ab5964830de83ae44006edb Mon Sep 17 00:00:00 2001 From: Andrew Clayton Date: Tue, 5 Mar 2024 15:03:40 +0000 Subject: 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 Signed-off-by: Andrew Clayton --- auto/make | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'auto') 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 -- cgit