Re: intltool rule patch



Jody Goldberg wrote:

On Sat, Mar 16, 2002 at 06:22:40PM +0000, Sander Vesik wrote:

   %.a : %.b  ; commands

	
target: dependency<newline>
<tab>commands

Should work for all makes, including all gmakes old and new, whetever the
target and dependency are wildcarded or no.

eg
INTLTOOL_DESKTOP_RULE='%.desktop:   %.desktop.in   ; $(INTLTOOL_MERGE) $(top_srcdir)/po/*.po ; $(INTLTOOL_MERGE) $(top_srcdir)/po $< [$]@ -d -u -c $(top_builddir)/po/.intltool-merge-cache'


My guess is that the goal here was to avoid having multiple lines in
the rule being substituted.  Does m4 support variables with
embedded new lines ?

M4 isn't really a problem here. It is sed which does the substitution, and it does seem to have problems with embedded newlines.

Newer versions of autoconf seem to have an AC_SUBST_FILE() command, where the value of the env variable is a file, which gets substituted. Maybe this would be be useful?

(of course, being able to use a single line subst would be more convenient).

James.

--
Email: james daa com au
WWW:   http://www.daa.com.au/~james/






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