[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #60399] Incorrect dependencies with grouped targets

From: Paul D. Smith
Subject: [bug #60399] Incorrect dependencies with grouped targets
Date: Mon, 6 Sep 2021 20:56:52 -0400 (EDT)
User-agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/93.0.4577.63 Safari/537.36

Update of bug #60399 (project make):

              Item Group:                     Bug => Enhancement            


Follow-up Comment #2:

Re-reading this I think I want to retract my earlier comment that this does
not seem right.  I think that make's behavior here is correct.

But, I'm willing to be convinced otherwise if there are good arguments for

The way a grouped target works is that a single invocation of the recipe
builds ALL targets.  This implies that if any single target in the set of
grouped targets is out of date, then all the targets will be built.  In this
example b is always out of date, and so the targets will always be built.

Just to check I tried using a pattern rule with multiple targets in this same
way (forcing only one of the targets to be out of date then explicitly
building the other one) and it worked the same way: both targets were rebuilt
rather than saying "up to date".

I'll leave this open as an enhancement to consider, and will be interested to
hear others' thoughts, but at this point I think the current behavior of GNU
make is correct and no changes are needed.


Reply to this item at:


  Message sent via Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]