[Top][All Lists]

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

Re: %-style pattern rules

From: Ralf Wildenhues
Subject: Re: %-style pattern rules
Date: Mon, 6 Aug 2007 09:01:32 +0200
User-agent: Mutt/1.5.16 (2007-07-16)

* Lorenzo Bettini wrote on Wed, Aug 01, 2007 at 05:58:43PM CEST:
>>> SUFFIXES = .cc.html .cs.html .h.html
>>> .cs.cs.html:
>>>     $(CSHARP2HTML) -i $< -o $@
> Andreas Schwab wrote:
>> This is not a recognized suffix rule, you'll have to register the .cs
>> suffix manually.
> opps... I didn't know that, I thought the rightmost extension would have 
> done.
> Now it works

Well, suffixes containing slashes or periods (other than the
leading one) are not covered by POSIX make; I don't know which
make implementations need this restriction though.

> However, I suspect I won't be able to adapt rules such as
> %.lang.texinfo: $(top_srcdir)/tests/%.lang
> will I?

You can try playing with VPATH.  But note that Automake uses VPATH for
$(srcdir) so you may find it less error-prone to just put the %.lang
files in $(srcdir).

Hope that helps.


reply via email to

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