[SCons] Allow 'clean' to be specified along with other targets
This commit is contained in:
parent
7556b828f9
commit
6b6ccfaf7f
1 changed files with 6 additions and 1 deletions
|
|
@ -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 ***
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue