]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 63098] Enhance detection of missing peer also-make targets
authorPaul Smith <psmith@gnu.org>
Sat, 22 Oct 2022 23:09:44 +0000 (19:09 -0400)
committerPaul Smith <psmith@gnu.org>
Sun, 23 Oct 2022 02:40:26 +0000 (22:40 -0400)
commitbb0c05a7f0329dd2ea38021e9c0b9e74e0cdb7de
tree1e4748af4391c77526650e2a4dee0d38f4359dd1
parentf987d181c40270359f4d89fbe3daa1966634bac2
[SV 63098] Enhance detection of missing peer also-make targets

The previous attempt to detect missing peer targets for implicit
rules had some holes.  Move the detection to notice_finished_file().

* src/remake.c (check_also_make): If we don't have the current mtime
for the file, obtain it.
(update_goal_chain): Don't call check_also_make() here.
(check_dep): Ditto.
(notice_finished_file): If we finished running an implicit rule that
has also_make targets, invoke check_also_make().
src/remake.c
tests/scripts/features/patternrules