X-Git-Url: http://g0dil.de/git?a=blobdiff_plain;f=SConstruct;h=60683ef60788ec0cb049e9c37ab14248fc02e69e;hb=c2f0215635980462481417204f27e27e4b4f702f;hp=dd029f116fca14b3462e82b8f156e75516a9cd6b;hpb=95cc0d59ae1ce92fe14e971f2ef9eaa6faa5b0f2;p=senf.git diff --git a/SConstruct b/SConstruct index dd029f1..60683ef 100644 --- a/SConstruct +++ b/SConstruct @@ -190,14 +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) ]) - if 'all' in BUILD_TARGETS: - import SCons.SConsign - SCons.SConsign.write = lambda : None + # 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"))