]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 48643] Preserve target-specific variables on intermediate files
authorDmitry Goncharov <dgoncharov@users.sf.net>
Wed, 29 Dec 2021 19:26:40 +0000 (14:26 -0500)
committerPaul Smith <psmith@gnu.org>
Wed, 29 Dec 2021 20:26:56 +0000 (15:26 -0500)
commitf2b130bda889e04082187d4cf97adf6bab58ed7b
tree9cbdca36597b08f82d72cc525c5e4953cad3126d
parent8aba33a8bd4a437340aeade0a959037ac2734ace
[SV 48643] Preserve target-specific variables on intermediate files

Target-specific variables used to define the target as "ought to
exist" so they could never be intermediate.  Now they can be, so
merge the target-specific variables from the intermediate target
so they're not lost.

* src/implicit.c (pattern_search): Use merge_variable_set_lists
to merge target-specific variables.
* tests/scripts/features/implicit_search: Add tests of target-
specific variable assignments and implicit rules.
src/implicit.c
tests/scripts/features/implicit_search