Mesa (master): scons: List all targets.
Jose Fonseca
jrfonseca at kemper.freedesktop.org
Fri Jun 17 19:13:46 UTC 2011
Module: Mesa
Branch: master
Commit: 10562fbc5c630b7f1a97344bc3d6b2649c7393a5
URL: http://cgit.freedesktop.org/mesa/mesa/commit/?id=10562fbc5c630b7f1a97344bc3d6b2649c7393a5
Author: José Fonseca <jfonseca at vmware.com>
Date: Fri Jun 17 20:11:50 2011 +0100
scons: List all targets.
---
SConstruct | 15 +++++++++++++++
1 files changed, 15 insertions(+), 0 deletions(-)
diff --git a/SConstruct b/SConstruct
index 6b725c4..029daa1 100644
--- a/SConstruct
+++ b/SConstruct
@@ -143,3 +143,18 @@ SConscript(
duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
)
+
+########################################################################
+# List all aliases
+
+try:
+ from SCons.Node.Alias import default_ans
+except ImportError:
+ pass
+else:
+ aliases = default_ans.keys()
+ aliases.sort()
+ env.Help('\n')
+ env.Help('Recognized targets:\n')
+ for alias in aliases:
+ env.Help(' %s\n' % alias)
More information about the mesa-commit
mailing list