diff options
author | Steven Knight <knight@baldmt.com> | 2003-02-05 22:06:52 (GMT) |
---|---|---|
committer | Steven Knight <knight@baldmt.com> | 2003-02-05 22:06:52 (GMT) |
commit | 1321ef0af677827deb274d698d06ffa8b73010b0 (patch) | |
tree | 12db09379f94382c56b55b9050e5e59950344867 /src/engine/SCons/Script/SConscript.py | |
parent | 15e31b8bda9f093971af3c3b0136b043ebb02746 (diff) | |
download | SCons-1321ef0af677827deb274d698d06ffa8b73010b0.zip SCons-1321ef0af677827deb274d698d06ffa8b73010b0.tar.gz SCons-1321ef0af677827deb274d698d06ffa8b73010b0.tar.bz2 |
Change the default behavior when no arguments are specified to building everything in (or below) the current directory.
Diffstat (limited to 'src/engine/SCons/Script/SConscript.py')
-rw-r--r-- | src/engine/SCons/Script/SConscript.py | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/engine/SCons/Script/SConscript.py b/src/engine/SCons/Script/SConscript.py index 7cfb312..5c4a2b3 100644 --- a/src/engine/SCons/Script/SConscript.py +++ b/src/engine/SCons/Script/SConscript.py @@ -51,7 +51,7 @@ import sys def do_nothing(text): pass HelpFunction = do_nothing -default_targets = [] +default_targets = None clean_targets = {} arguments = {} launch_dir = os.path.abspath(os.curdir) @@ -204,8 +204,13 @@ def SConscript(*ls, **kw): return tuple(results) def Default(*targets): + global default_targets + if default_targets is None: + default_targets = [] for t in targets: - if isinstance(t, SCons.Node.Node): + if t is None: + default_targets = [] + elif isinstance(t, SCons.Node.Node): default_targets.append(t) else: default_targets.extend(SCons.Node.arg2nodes(t, |