More 'scons -c' stuff
[senf.git] / Examples / SConscript
index 60c1337..b8e2767 100644 (file)
@@ -15,7 +15,9 @@ for sconstruct in glob.glob("*/SConstruct"):
                         [ '$SCONS -C $EXAMPLEDIR' ],
                         CONCURRENCY_LEVEL=1, EXAMPLEDIR=dir)
     env.Alias('examples', example)
-
+    if env.GetOption('clean') and 'all' in BUILD_TARGETS or 'examples' in BUILD_TARGETS:
+        env.Clone(CONCURRENCY_LEVEL=1, EXAMPLEDIR=dir).Execute([ '.$SCONS -C $EXAMPLEDIR -c' ])
+                    
 
 for dox in glob.glob("*/Doxyfile"):
     extra_sources = [ eval(line.split(':',1)[1])