Fix scons -c all SCons error (after everything is done)
g0dil [Fri, 18 Sep 2009 09:17:42 +0000 (09:17 +0000)]
git-svn-id: https://svn.berlios.de/svnroot/repos/senf/trunk@1422 270642c3-0616-0410-b53a-bc976706d245

SConstruct

index b9cd5c5..dd029f1 100644 (file)
@@ -195,6 +195,9 @@ if env.GetOption('clean'):
                        for path, subdirs, files in os.walk('.')
                        for pattern in env['CLEAN_PATTERNS']
                        for f in fnmatch.filter(files,pattern) ])
+    if 'all' in BUILD_TARGETS:
+        import SCons.SConsign
+        SCons.SConsign.write = lambda : None
 
 if not env.GetOption('clean') and not os.path.exists(".prepare-stamp"):
     Execute(Touch(".prepare-stamp"))