make-alpha
[Top][All Lists]
Advanced

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

Re: [bug #31002] make picks wrong pattern rule


From: Boris Kolpackov
Subject: Re: [bug #31002] make picks wrong pattern rule
Date: Mon, 13 Sep 2010 21:06:07 +0200
User-agent: Mutt/1.5.18 (2008-05-17)

[CC'ed make-alpha]

Hi Edward,

Edward Welbourne <address@hidden> writes:

> The down-side of the new rule is that there's no way to bypass it: the 
> longest-stem rule is always going to select the longest-stem rule 
> applicable, there's nothing the makefile author can do to cause the 
> less-frequently-desired rule to be applied, when it happens to be what 
> they need.

Can you show an example of this? As far as I can see, given two rules,
the first more general and the second more specific, you can get the
old behavior (in a backwards-compatible way) by inserting a third
rule between them that is constructed like this: Take the left hand
side part from the second rule. Take the right hand side part from
the first rule. Add the stem difference between the first and the
second rule to the right hand side of the newly created rule.

Here is an example:

%.o: %.S
  ...

foo-%.o: %.c
  ...

Here is the third rule that should be inserted between the two:

foo-%.o: foo-%.S
  ...

Boris



reply via email to

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