help-make
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

getting rid of all special treatment of intermediate files


From: Britton Kerin
Subject: getting rid of all special treatment of intermediate files
Date: Sun, 27 Aug 2017 22:31:46 -0800

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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]