automake
[Top][All Lists]
Advanced

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

Re: Makefile to Makefile.am


From: Ralf Wildenhues
Subject: Re: Makefile to Makefile.am
Date: Sun, 15 Aug 2010 23:32:44 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

* Thien-Thi Nguyen wrote on Sun, Aug 15, 2010 at 07:02:21PM CEST:
> Probably Automake manual (and its readers)
> could benefit from changing the mysterious:
> 
>   We do not discuss pattern rules here because they are not
>   portable, but they can be convenient in packages that assume GNU
>   `make'.
> 
> to something like:
> 
>   Although pattern rules are not portable, they can be convenient
>   in packages that assume GNU `make'.
>   the pattern rule is used to match the stem of a filename, you
>   can use the old fashioned suffix rule (pxref here) instead.
>   For example:
> 
>   # pattern rule, not portable
>   %.bmp : %.xcf
>           $(GIMP) -i -b '(xcf-bmp "$<" "$@")' -b '(gimp-quit 0)'
> 
>   # old fashioned suffix rule, portable
>   .xcf.bmp:
>           $(GIMP) -i -b '(xcf-bmp "$<" "$@")' -b '(gimp-quit 0)'
> 
> Hey, maybe Automake hackers can riff off this thread in time for
> the next release... (or, "Would you like me to submit a patch?").

Yes, with a general example, please.

Thanks!
Ralf



reply via email to

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