bug-make
[Top][All Lists]
Advanced

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

Re: Bug in pattern rule parsing: how to handle?


From: Philip Guenther
Subject: Re: Bug in pattern rule parsing: how to handle?
Date: Sun, 26 Oct 2008 15:32:35 -0700

On Sun, Oct 26, 2008 at 2:48 PM, Paul Smith <address@hidden> wrote:
...
> Here's the issue: if you write a rule like this:
>
>        foo %.c: ; @: oops
>
> it actually works!  This, I believe, should be illegal.

Just to be clear, the problem with mixing a pattern with a normal
target is what happens when there's a pattern prerequisite, right?  I
mean, the example you gave at least has a sensical _possible_
interpretation, but this:
   foo %.c: %.c.real ; @: cp $< $@

doesn't, so make _has_ to detect and throw an error there.


Philip Guenther




reply via email to

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