[llvm-commits] [llvm] r65245 - /llvm/trunk/Makefile.rules

Daniel Dunbar daniel at zuster.org
Sat Feb 21 12:42:40 PST 2009


Author: ddunbar
Date: Sat Feb 21 14:42:39 2009
New Revision: 65245

URL: http://llvm.org/viewvc/llvm-project?rev=65245&view=rev
Log:
Add makefile debugging target; use "make print-FOO" to print the
value/definition/origin of FOO.

Modified:
    llvm/trunk/Makefile.rules

Modified: llvm/trunk/Makefile.rules
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/Makefile.rules?rev=65245&r1=65244&r2=65245&view=diff

==============================================================================
--- llvm/trunk/Makefile.rules (original)
+++ llvm/trunk/Makefile.rules Sat Feb 21 14:42:39 2009
@@ -1765,3 +1765,11 @@
 	$(Echo) "SubDirs      : " '$(SubDirs)'
 	$(Echo) "ProjLibsPaths: " '$(ProjLibsPaths)'
 	$(Echo) "ProjLibsOptions: " '$(ProjLibsOptions)'
+
+###
+# Debugging
+
+# General debugging rule, use 'make print-XXX' to print the
+# definition, value and origin of XXX.
+print-%: 
+	$(error PRINT: $(value $*) = "$($*)" (from $(origin $*)))





More information about the llvm-commits mailing list