[ '$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])
'rm /tmp/senf_lcov.info' ])
if env.GetOption('clean'):
env.Depends('lcov', 'all_tests')
-env.Clean('lcov', [ os.path.join(path,f)
- for path, subdirs, files in os.walk('.')
- for pattern in ['*.gcno', '*.gcda', '*.gcov']
- for f in fnmatch.filter(files,pattern) ] +
- [ 'lcov.info', env.Dir('doc/lcov') ])
+ env.Clean('lcov', [ os.path.join(path,f)
+ for path, subdirs, files in os.walk('.')
+ for pattern in ['*.gcno', '*.gcda', '*.gcov']
+ for f in fnmatch.filter(files,pattern) ] +
+ [ 'lcov.info', env.Dir('doc/lcov') ])
#### clean
-env.Clean('all', ('.prepare-stamp', libsenf, env.Dir('dist'), 'lcov.info', env.Dir('doc/lcov') ))
+env.Clean('all', ('.prepare-stamp', libsenf, env.Dir('dist')))
+if env.GetOption('clean') : env.Depends('all', ('lcov', 'all_valgrinds'))
if env.GetOption('clean'):
env.Clean('all', [ os.path.join(path,f)