Add basic make {help,help-hidden} targets.

llvm-svn: 93713
This commit is contained in:
Daniel Dunbar 2010-01-18 06:48:19 +00:00
parent 43164b34b1
commit 40d6f65ae1

View File

@ -24,6 +24,27 @@ endif
###
# Top level targets
# FIXME: Document the available subtargets.
help:
@echo "usage: make [{VARIABLE=VALUE}*] target"
@echo
@echo "User variables:"
@echo " VERBOSE=1: Use to show all commands [default=0]"
@echo
@echo "Available targets:"
@echo " clean: clean all configurations"
@echo " test: run unit tests"
@echo " all: build all configurations"
@echo
help-hidden: help
@echo "Debugging variables:"
@echo " DEBUGMAKE=1: enable some Makefile logging [default=0]"
@echo
@echo "Debugging targets:"
@echo " make-print-FOO: print information on the variable 'FOO'"
@echo
# Provide default clean target which is extended by other templates.
.PHONY: clean
clean::