[Scons-users] Fwd: Cleaning only certain built objects

Dirk Bächle tshortik at gmx.de
Fri Nov 14 09:21:41 EST 2014


Hi Jean,

On 14.11.2014 15:02, Jean Duthon wrote:
> Hello,
>
> I am facing a problem today.
>
> My SConstruct is building a library by default, and doing some other 
> things with the right options (like building & running tests, or 
> packaging our lib for further usages).
>
> I would like to use those same options to clean only the relevant 
> objects (for example, running scons -c --Tests I hope to clean only 
> the test objects, but not all the lib ones).
>
you should be able to "collect" all the test objects that you want to 
get cleaned, in an Alias:

   env.Alias('testsonly', ['target1','target2',...])

Then you can address this "set of targets" on the command line:

   scons -c testsonly

Best regards,

Dirk



More information about the Scons-users mailing list