summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2010-01-18 06:48:19 +0000
committerDaniel Dunbar <daniel@zuster.org>2010-01-18 06:48:19 +0000
commitf5722759b8fd2ae65042fe6f87908e3569dbfdf0 (patch)
tree8ab1e39df1b3e44f0ff24367609456c3beffe619 /Makefile
parenta68b0e41908d057f81f31e25346c8b96436b7e4b (diff)
Add basic make {help,help-hidden} targets.
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@93713 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 82efba1a6..7941f106f 100644
--- a/Makefile
+++ b/Makefile
@@ -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::