Re: Fwd: Dependency tree for test framework

Mats Wichmann <[email protected]> Thu, 3 Apr 2025 15:32:38 -0600
Newsgroups gmane.comp.programming.tools.scons.user
Message-ID <[email protected]>
On 4/3/25 15:06, Oliver Koch via Scons-users wrote:

> PreProcess.py reads aNew\b.out and writes aNew\b.out.tmp.
> 
> If either PreProcess.py changes (e.g. because I fix a bug in the Python
> script) or the input file aNew\b.out changes aNew\b.out.tmp must be
> re-created. SCons should recognize this a re-create aNew\b.out.tmp

That is how SCons builders work, so should be no real problem.

the target is rebuilt if the source changes, or if the contents of the 
expanded build string changes - both of those are checked by comparing a 
hash with a saved hash.  The first word of the build action is assumed 
to be the command, and changes to that will also trigger a rebuild.