[Scons-users] Customize build decision logic for phony targets, that doesn't involve files

Bill Deegan bill at baddogconsulting.com
Mon Mar 28 12:59:08 EDT 2016


Try:
scons --debug=explain

-Bill

On Mon, Mar 28, 2016 at 8:51 AM, Andrew Pashkin <andrew.pashkin at gmx.co.uk>
wrote:

> On 03/28/2016 06:47 PM, Bill Deegan wrote:
>
> Andrew,
>
> No, Value() is specifically for any value, not just files, so you could
> create a Value() node which holds the output from git ls-remote as the
> source for your builder.
> That should be sufficient, then if it changes, it would cause the builder
> to run.
>
> But why this script continues to rebuilding target after the first build?
>
> env = Environment()
>
> def action(**_):
>     print('Do crazy things')
>
> input = env.Value('a')
>
> env['BUILDERS']['Custom'] = Builder(action=action)
> env.Custom(target='target', source=input)
> env.Pseudo('target')
>
>
> _______________________________________________
> Scons-users mailing list
> Scons-users at scons.org
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160328/dd0c8389/attachment-0001.html>


More information about the Scons-users mailing list