<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
<META NAME="GENERATOR" CONTENT="GtkHTML/3.26.0">
</HEAD>
<BODY>
On Sat, 2011-01-22 at 09:54 +0100, Rémi Cardona wrote:
<BLOCKQUOTE TYPE=CITE>
<PRE>
Le 22/01/2011 03:47, Gaetan Nadon a écrit :
> The path substitution in mkfontdir script can be done at configuration
> time using Autoconf. This is an alternative to using sed and requires
> less Makefile work.
It may be slightly less Makefile work, but it's not what the autoconf
folks recommend. I would stick by that instead (which is already better
than what the current makefile does).
>From the autoconf manual [1] :
======
Similarly, you should not rely on AC_CONFIG_FILES to replace bindir and
friends in your shell scripts and other files; instead, let make manage
their replacement. For instance Autoconf ships templates of its shell
scripts ending with ‘.in’, and uses a makefile snippet similar to the
following to build scripts like autoheader and autom4te:
edit = sed \
-e 's|@bindir[@]|$(bindir)|g' \
-e 's|@pkgdatadir[@]|$(pkgdatadir)|g' \
-e 's|@prefix[@]|$(prefix)|g'
======
I've seen this done a lot of times in many Makefile.am in many projects,
it really is a standard idiom and we should use it too.
</PRE>
</BLOCKQUOTE>
Wow, thanks a million. I totally missed that.
<BLOCKQUOTE TYPE=CITE>
<PRE>
Cheers,
Rémi
[1]
<A HREF="http://www.gnu.org/software/autoconf/manual/autoconf.html#index-sysconfdir-184">http://www.gnu.org/software/autoconf/manual/autoconf.html#index-sysconfdir-184</A>
_______________________________________________
<A HREF="mailto:xorg-devel@lists.x.org">xorg-devel@lists.x.org</A>: X.Org development
Archives: <A HREF="http://lists.x.org/archives/xorg-devel">http://lists.x.org/archives/xorg-devel</A>
Info: <A HREF="http://lists.x.org/mailman/listinfo/xorg-devel">http://lists.x.org/mailman/listinfo/xorg-devel</A>
</PRE>
</BLOCKQUOTE>
</BODY>
</HTML>