Re: Make's assumption that files it does not create do not change

Paul Smith <[email protected]>
Newsgroups gmane.comp.gnu.make.general
Organization GNU's Not UNIX!
Message-ID <[email protected]>
On Tue, 2022-04-12 at 17:18 +0200, Sébastien Hinderer wrote:
> On the PR, David explains the problem in a very detailed way and
> proposes a solution.
> 
> Both of us would be interested in a review by GNU make experts.

The discussion of the issue and the proposed solution possibilities
look correct to me.  An alternative would be to use a "sentinel file"
model (where all generated targets depend on a sentinel file, and that
sentinel file contains the actual recipe plus a touch command to touch
the sentinel file) but I don't think it's needed in this situation.

There can still be issues if people go in behind the build system and
start deleting and touching files by hand.  For example if someone
deletes just the target with the empty recipe, make doesn't know how to
rebuild it.  But otherwise it should be OK.
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.