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.

Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
  • Loading branch information
ac000 committed Mar 6, 2024
1 parent d5e3a4a commit 25a21d2
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions auto/make
Original file line number Diff line number Diff line change
Expand Up @@ -553,4 +553,13 @@ 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 25a21d2

Please sign in to comment.