Skip to content

Commit

Permalink
Add a help target to the root Makefile
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: Andrew Clayton <[email protected]>
  • Loading branch information
ac000 committed Mar 9, 2024
1 parent d23812b commit f55fa70
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions auto/make
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit f55fa70

Please sign in to comment.