From 6b6ccfaf7fb3ee38abaffa4118423f7746b98b12 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Tue, 18 Mar 2014 01:42:34 +0000 Subject: [PATCH] [SCons] Allow 'clean' to be specified along with other targets --- SConstruct | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SConstruct b/SConstruct index 9ef080ba1..7c7237695 100644 --- a/SConstruct +++ b/SConstruct @@ -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 ***