]> git.ipfire.org Git - thirdparty/make.git/commit
[SV 65006] Allow secondary expansion of .EXTRA_PREREQS
authorDmitry Goncharov <dgoncharov@users.sf.net>
Sat, 6 Jan 2024 22:39:43 +0000 (17:39 -0500)
committerPaul Smith <psmith@gnu.org>
Sat, 6 Jan 2024 22:39:43 +0000 (17:39 -0500)
commit33932663b031e128200a45818a19fe0620ccb50f
tree8b868af8c86ccd52f57ba8b4bfa97977972cc618
parent89bea82af37908f2c4cc1fdea1433b927e2864a2
[SV 65006] Allow secondary expansion of .EXTRA_PREREQS

* src/rule.c (snap_implicit_rules): Set need_2nd_expansion of each
  prerequisite of global .EXTRA_PREREQS.
* src/file.c (snap_file):  Set need_2nd_expansion of each prerequisite
  of target-specific .EXTRA_PREREQS.
* tests/scripts/variables/EXTRA_PREREQS: Add tests.

Reported by Daniel Gerber <dg@atufi.org>.
src/file.c
src/rule.c
tests/scripts/variables/EXTRA_PREREQS