]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 66273] Double-colon targets must not be intermediate
authorDmitry Goncharov <dgoncharov@users.sf.net>
Wed, 2 Oct 2024 02:27:25 +0000 (22:27 -0400)
committerPaul Smith <psmith@gnu.org>
Wed, 2 Oct 2024 02:27:25 +0000 (22:27 -0400)
commitaa8626ce09317151f59490ebd5673afdedb3e1f2
tree940c1b0eb3bddfb63c4efacc0b422b512ec2760d
parent93704dd565e12a81f44ad4e98abfbef82227f63e
[SV 66273] Double-colon targets must not be intermediate

An explicitly mentioned double-colon target cannot be intermediate.

* src/read.c (record_files): Set file->is_explicit in the case of an
explicitly mentioned file built by a double colon rule.
* src/file.c (print_file): Have print_file print whether a file is
explicitly mentioned.
* tests/scripts/features/patternrules: Add tests.
src/file.c
src/read.c
tests/scripts/features/patternrules