[Scons-users] check target must be build / is up-to-date

Bill Deegan bill at baddogconsulting.com
Thu Jun 20 18:51:36 EDT 2013


Phil,

What's the do something if it must be built? And the not build action?
Knowing that will help with how it might be done.

You can add a postaction to the action that does this for the positive
case, but not really sure how you'd do the negative?

-Bill



On Thu, Jun 20, 2013 at 3:21 PM, Philipp Kraus
<philipp.kraus at flashpixx.de>wrote:


> Hello,

>

> can I check if a target must be build again?

> I have got something like

>

> x = env.Builder("test", [sources])

> if x.must_build() :

> do something if the target must be build

> else :

> do something if the target is up-to-date

>

> Thanks

>

> Phil

> _______________________________________________

> Scons-users mailing list

> Scons-users at scons.org

> http://four.pairlist.net/mailman/listinfo/scons-users

>

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


More information about the Scons-users mailing list