Examples: Fix redundant rebuilds
[senf.git] / Examples / SConscript
index 7350f38..9ef20a0 100644 (file)
@@ -15,7 +15,7 @@ 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:
+    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' ])