scons: Only build progs when explicitly requested in the command line.
authorJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Feb 2010 20:23:10 +0000 (20:23 +0000)
committerJosé Fonseca <jfonseca@vmware.com>
Wed, 10 Feb 2010 20:23:10 +0000 (20:23 +0000)
SConstruct

index 2e00ec47bd14e6c781dc101b51df0853c904859d..964af7e59188b3c854c55ba1c570029102e636fe 100644 (file)
@@ -225,8 +225,9 @@ SConscript(
        duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
 )
 
-SConscript(
-       'progs/SConscript',
-       variant_dir = os.path.join('progs', env['build']),
-       duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
-)
+if 'progs' in COMMAND_LINE_TARGETS:
+    SConscript(
+        'progs/SConscript',
+        variant_dir = os.path.join('progs', env['build']),
+        duplicate = 0 # http://www.scons.org/doc/0.97/HTML/scons-user/x2261.html
+    )