Reputation: 3
I have a makefile that includes two rules each of which defines a (completely different) grouped target. The intention in each case is (of course) to generate all of the targets by executing the associated recipe once.
If both rules are present, each using the target separator "&:", I get "warning: overriding recipe for target '&'", with the first lines of each of the two recipes cited.
If I change either rule to use the standard target separator ":", the warning goes away.
I can provide extracts from the makefile but believe the above description is as concise as it will get.
Upvotes: 0
Views: 183
Reputation: 100936
Grouped targets were introduced in GNU make version 4.3.
Your version of GNU make is too old and doesn't recognize this syntax (it thinks that &
is a target name).
Upvotes: 2