summaryrefslogtreecommitdiffstats
path: root/src/engine
diff options
context:
space:
mode:
authorSteven Knight <knight@baldmt.com>2005-10-02 22:59:58 (GMT)
committerSteven Knight <knight@baldmt.com>2005-10-02 22:59:58 (GMT)
commitc002befd739ff1f043654c4c503e018a4ede0b60 (patch)
tree69f38dbe43da93222176ef21d4170511e90a6771 /src/engine
parentb1143ee5d16b0c9ee0c68e5aeedc02e425e61eba (diff)
downloadSCons-c002befd739ff1f043654c4c503e018a4ede0b60.zip
SCons-c002befd739ff1f043654c4c503e018a4ede0b60.tar.gz
SCons-c002befd739ff1f043654c4c503e018a4ede0b60.tar.bz2
Report removal of multiple targets correctly when using -n -c. (Patrick Mezard)
Diffstat (limited to 'src/engine')
-rw-r--r--src/engine/SCons/Script/Main.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/engine/SCons/Script/Main.py b/src/engine/SCons/Script/Main.py
index a5e07b4..2ffe97b 100644
--- a/src/engine/SCons/Script/Main.py
+++ b/src/engine/SCons/Script/Main.py
@@ -224,8 +224,10 @@ class CleanTask(SCons.Taskmaster.Task):
def show(self):
target = self.targets[0]
- if (target.has_builder() or target.side_effect) and not target.isdir():
- display("Removed " + str(target))
+ if target.has_builder() or target.side_effect:
+ for t in self.targets:
+ if not t.isdir():
+ display("Removed " + str(t))
if SCons.Environment.CleanTargets.has_key(target):
files = SCons.Environment.CleanTargets[target]
for f in files: