[Scons-users] global cleanup

Kenny, Jason L jason.l.kenny at intel.com
Thu Aug 23 13:06:57 EDT 2012


A common trick that is often you is make a variant directories that start with '_' then you can say rm -rf _* or rm -r -for _* ( on powershell for windows)

Jason

-----Original Message-----
From: scons-users-bounces at scons.org [mailto:scons-users-bounces at scons.org] On Behalf Of Chris BeHanna
Sent: Thursday, August 23, 2012 11:52 AM
To: SCons users mailing list
Subject: Re: [Scons-users] global cleanup

On Aug 23, 2012, at 07:33 , Francis Bolduc <fbolduc at gmail.com> wrote:


>> prg = env.Program()

>> env.Clean("clean", [prg, "config.log"])

>

> There is no need to explicitly call "Clean" on files that SCons knows,

> such as the product of a builder like "Program". Since SCons knows

> them, they will be deleted when you invoke "scons -c" at the

> top-level.


Although this is true, and it works, you *do* have to wait for scons to initialize and build the DAG before it starts cleaning. For large builds, this can take awhile.

Personally, I find it far more convenient and expedient to simply use a VariantDir() and do my cleaning via "rm -rf". It's also dead-simple, with this method, to tell your version control system to ignore your build outputs tree and easily see what you've changed without having to have that view cluttered up with derived files.

--
Chris BeHanna
chris at behanna.org
_______________________________________________
Scons-users mailing list
Scons-users at scons.org
http://four.pairlist.net/mailman/listinfo/scons-users


More information about the Scons-users mailing list