"Paul D. Smith" <[EMAIL PROTECTED]> wrote:

> See the second paragraph in the GNU make manual section "How Patterns
> Match".  If the target doesn't contain a slash, then directory names
> are removed from the file name before it is compared.

Thanks.  I guess I'll need to do "make bar/b/c" instead of "make b/c",
so that the target can be "bar/%" instead of "%".

> > I'm almost certain this used to work.
>
> I tried versions of GNU make all the way back to 3.74 with this
> example, and they all behaved as above (no rule to make target...).

Maybe I was thinking of Solaris make.  I just tried it, and it does what
I was expecting ("make b/c" uses the rule "%: bar/%.foo").

AMC

_______________________________________________
Bug-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/bug-make

Reply via email to