[Scons-users] NoClean and node lists

robert zeigler robert.zeigler at gmail.com
Fri Apr 25 19:05:50 EDT 2014


I have been playing with "NoClean" in conjunction with some multi-target
build steps I have where I want to mark certain targets within that step as
NoClean, but the remaining targets can be safely cleaned.

It seems with NoClean it is an all-or-nothing proposition (using
scons-2.3.0)?

For instance, consider this trivial build script:

Command("baz", "", "echo hello > $TARGET")
Command(["foo", "bar"], "baz", "cat baz > foo && echo hellofoo >> foo &&
cat baz > bar && echo hellobar >> bar")

With no NoClean call:

scons -c

cleans baz, foo, and bar as expected.

If I add:

NoClean("foo")

scons -c only cleans "baz", though I was expecting it to also clean "bar".

If I add:

NoClean("bar")

scons -c cleans baz, foo, and bar! (I was, of course, expecting only baz
and foo to be cleaned).

Am I missing something? Shouldn't I be able to specify a subset of targets
in a multi-target step as NoClean?

Robert
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://four.pairlist.net/pipermail/scons-users/attachments/20140425/a5152d7c/attachment.htm


More information about the Scons-users mailing list