[Scons-users] Customize build decision logic for phony targets, that doesn't involve files
Bill Deegan
bill at baddogconsulting.com
Mon Mar 28 11:47:38 EDT 2016
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.
-Bill
On Mon, Mar 28, 2016 at 8:09 AM, Andrew Pashkin <andrew.pashkin at gmx.co.uk>
wrote:
> The problem is how to make SCons track changes in something other than
> files.
>
> The docs for Value()
> <http://www.scons.org/doc/production/HTML/scons-user.html#f-Value> says:
>
> If the result of calling str(value) changes between SCons runs, any
> targets depending on Value(value) will be rebuilt.
>
> But it turns out, that it works only for files, right? Or SCons maintains
> some sort of database to save values between runs? Maybe it's worth to make
> a PR to teach SCons to work not only with files?
>
> _______________________________________________
> 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/b3f93e2d/attachment.html>
More information about the Scons-users
mailing list