[Scons-users] Removing object files

Dirk Bächle tshortik at gmx.de
Sun Jul 12 08:55:50 EDT 2015


Christopher,

On 12.07.2015 13:11, Christopher Dimech wrote:
> I am using a separate .py file for a particular test. I need to
> specify the .py file and then call -c. It does a clean in that
> directory but does not build the program. Can one specify a clean in
> the .py script before I rebuild my test program?
>
> scons -f sct_membrane_meidum.py -c build/lib/behistun/
>

sorry if I still don't understand what you're actually after. If you somehow want to "connect" your separate build script 
sct_membrane_meidum.py to your main build (because there are dependencies that you want SCons to see), then your best option is to 
put the test in the same SConstruct for your main build. This means effectively getting rid of the additional build script, and 
having just one build tree for everything.
Then, SCons can correctly pick up all the implicit dependencies from your definitions of the single targets and programs, and you 
can pick which target/Alias should get built by specifying it on the command line.

Does this help?

Best regards,

Dirk



More information about the Scons-users mailing list