[llvm-commits] [compiler-rt] r93713 - /compiler-rt/trunk/Makefile

Daniel Dunbar daniel at zuster.org
Sun Jan 17 22:48:20 PST 2010


Author: ddunbar
Date: Mon Jan 18 00:48:19 2010
New Revision: 93713

URL: http://llvm.org/viewvc/llvm-project?rev=93713&view=rev
Log:
Add basic make {help,help-hidden} targets.

Modified:
    compiler-rt/trunk/Makefile

Modified: compiler-rt/trunk/Makefile
URL: http://llvm.org/viewvc/llvm-project/compiler-rt/trunk/Makefile?rev=93713&r1=93712&r2=93713&view=diff

==============================================================================
--- compiler-rt/trunk/Makefile (original)
+++ compiler-rt/trunk/Makefile Mon Jan 18 00:48:19 2010
@@ -24,6 +24,27 @@
 ###
 # 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::





More information about the llvm-commits mailing list