[SCons] Allow 'clean' to be specified along with other targets

This commit is contained in:
Ray Speth 2014-03-18 01:42:34 +00:00
parent 7556b828f9
commit 6b6ccfaf7f

View file

@ -62,7 +62,12 @@ if 'clean' in COMMAND_LINE_TARGETS:
if name.startswith('ctmethods.'):
removeFile('interfaces/matlab/toolbox/' + name)
print 'Done removing output files.'
sys.exit(0)
if COMMAND_LINE_TARGETS == ['clean']:
# Just exit if there's nothing else to do
sys.exit(0)
else:
Alias('clean', [])
# ******************************************************
# *** Set system-dependent defaults for some options ***