Make treats intermediate files specially in two ways as described here:

https://www.gnu.org/software/make/manual/html_node/Chained-Rules.html#Chained-Rules

I guess this behavior doesn't apply to static pattern rules, since
listing every file they apply to presumably counts as "mentioning"
them as described in the above page?  Unless of course one decides to
put .SECONDARY: in one's Makefile.

I ask because sometime long ago I decided it would be clever to use
.SECONDARY: (without prereqs) in my makefiles, to avoid implicit rule
intermediate products getting mysteriously deleted.  Amazingly only
just now did I just get burned by the fact that it makes everything
.INTERMEDIATE and therefore can prevent rebuilds despite missing
prereqs, even when static pattern rules are being used.  But if no
implicit rules, and no .SECONDARY: or .INTERMEDIATE, then no such
issue, right?

Thanks,
Britton

_______________________________________________
Help-make mailing list
Help-make@gnu.org
https://lists.gnu.org/mailman/listinfo/help-make

Reply via email to