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

Andrew Pashkin andrew.pashkin at gmx.co.uk
Mon Mar 28 11:51:20 EDT 2016


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')

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://pairlist4.pair.net/pipermail/scons-users/attachments/20160328/2c9743d5/attachment.html>


More information about the Scons-users mailing list