]> git.ipfire.org Git - thirdparty/make.git/commit
Do not force targets to be SECONDARY
authorPaul Smith <psmith@gnu.org>
Wed, 29 Dec 2021 19:44:46 +0000 (14:44 -0500)
committerPaul Smith <psmith@gnu.org>
Wed, 29 Dec 2021 20:26:56 +0000 (15:26 -0500)
commit6682fbc2cb72343fa89979ad2fed83b01e423004
tree3cb2ea15f11c60e5d576044c3c1efb85bcf6d913
parentf2b130bda889e04082187d4cf97adf6bab58ed7b
Do not force targets to be SECONDARY

In SV 43677 we forced targets to be secondary if we found an
intermediate file that was listed as a prerequisite of another
target.  This overrides .INTERMEDIATE settings, so doesn't work.
Now that we have an is_explicit flag in targets, use that instead.

* src/implicit.c (pattern_search): Remove setting of secondary.
Preserve the value of the is_explicit flag when creating a new
file target, and consider it when setting the intermediate flag.
* tests/scripts/features/patternrules: Add a test w/out INTERMEDIATE
* tests/scripts/targets/INTERMEDIATE: Add a test with INTERMEDIATE
src/implicit.c
tests/scripts/features/patternrules
tests/scripts/targets/INTERMEDIATE