[bug #67825] $^ is set incorrectly in the case of grouped targets

Dmitry Goncharov <[email protected]> Fri, 19 Dec 2025 22:38:35 -0500 (EST)
Newsgroups gmane.comp.gnu.make.bugs
Message-ID <[email protected]>
Follow-up Comment #4, bug #67825 (group make):

In your third example make is building one target from a set of grouped
targets. In such case, make has to update all prerequisites of all grouped
targets. That's because the recipe updates all targets and therefore all
prerequisites (even prerequisites of other targets from the set) have to be
fresh.
Yes, make walks through the prerequisites of all targets and still in make's
dependency graph file2 is a prerequisite of target2 only.
You can see make's database with -p.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?67825>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc (application/pgp-signature, 228 B)
-----BEGIN PGP SIGNATURE-----

iHUEABYIAB0WIQQk97aszIMMAvLLwm6qLAuaBUf3TgUCaUYaOwAKCRCqLAuaBUf3
ThXvAQCVh6ucl9CCMFxZL5Rro625aoC+bNJnugzaWtTgg61Q5gEAqKsZgqOV1pqy
UKUjHke0Ep9PIw1xY1Z7fa6MurXOsQ0=
=/TT3
-----END PGP SIGNATURE-----