Re: flow of target handling

Bill Deegan <[email protected]>
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <CAEyG4CHwDj3G_t4H+KMY1cLWM--R5noEYBRLjxvSOufbtBBT0Q@mail.gmail.com>
I'm not really sure what you're asking.
If a dependency of a target changes, the target should be rebuilt.

Perhaps if you can craft a simple reproducer, that might explain better?

On Mon, Aug 17, 2020 at 9:45 AM daggs <[email protected]> wrote:

> Greetings,
>
> I want to inquire what does scons does for the target of an action if it
> detects one of it's deps have changed.
> the reason I'm asking is that I have an action that runs a script, the
> script is part of the deps (e.g. exists)
> and the target is a file generated by the script (named fileA).
> the action is a dep of multiple other actions.
> what I see is that scons decides to rebuild the target because it's
> detects the script has changed so it rebuilds it.
> just for the sake of the test, I've changed the script to create fileA and
> fileB and if fileB is changed the script gets executed.
> I've expected no see one execution but I see two.
>
> so I'm having hard time to understand how scons works in this situation.
>
> can anyone help understand the behavior?
>
> Thanks,
>
> Dagg.
> _______________________________________________
> Scons-users mailing list
> [email protected]
> https://pairlist4.pair.net/mailman/listinfo/scons-users
>

_______________________________________________
Scons-users mailing list
[email protected]
https://pairlist4.pair.net/mailman/listinfo/scons-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.