X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=SConstruct;h=60683ef60788ec0cb049e9c37ab14248fc02e69e;hb=d9143facc7806e2c03ee357fd9697ea9a1277377;hp=b9cd5c53a3db63c3e47e9b1addc9b2f863394aa9;hpb=737789818bf8658d3b3f4444a273b2d44021e51a;p=senf.git diff --git a/SConstruct b/SConstruct index b9cd5c5..60683ef 100644 --- a/SConstruct +++ b/SConstruct @@ -190,11 +190,14 @@ if env.GetOption('clean'): env.Clean('all', ('.prepare-stamp', env.Dir('dist'))) if env.GetOption('clean') : env.Depends('all', ('lcov', 'all_valgrinds')) -if env.GetOption('clean'): +if env.GetOption('clean') and 'all' in BUILD_TARGETS: env.Clean('all', [ os.path.join(path,f) for path, subdirs, files in os.walk('.') for pattern in env['CLEAN_PATTERNS'] for f in fnmatch.filter(files,pattern) ]) + # Disable writing to the deleted .sconsign file + import SCons.SConsign + SCons.SConsign.write = lambda : None if not env.GetOption('clean') and not os.path.exists(".prepare-stamp"): Execute(Touch(".prepare-stamp"))