From: Alexandre Duret-Lutz Date: Sat, 26 Feb 2005 10:33:10 +0000 (+0000) Subject: * doc/automake.texi (Alternative): Show how to rewrite nobase_ X-Git-Tag: Release-1-9b~182 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71b2f81dfaf08ed1bd30ae0f3e6e8008b957834d;p=thirdparty%2Fautomake.git * doc/automake.texi (Alternative): Show how to rewrite nobase_ variables using custom directory variables, and link to node Uniform. Suggested by Leonardo Boiko. --- diff --git a/ChangeLog b/ChangeLog index 7f0f5fa78..127317fea 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,9 @@ 2005-02-26 Alexandre Duret-Lutz + * doc/automake.texi (Alternative): Show how to rewrite nobase_ + variables using custom directory variables, and link to node + Uniform. Suggested by Leonardo Boiko. + * doc/automake.texi (Flag Variables Ordering, User Variables): Make clearer who the maintainer is, and that he can AC_SUBST AM_ variables in configure.ac. Suggested by Norman Gray. diff --git a/THANKS b/THANKS index 973b39734..a839134cb 100644 --- a/THANKS +++ b/THANKS @@ -137,6 +137,7 @@ Lars Hecking lhecking@nmrc.ucc.ie Lars J. Aas larsa@sim.no Laurent Morichetti laurentm@cup.hp.com Leo Davis ldavis@fonix.com +Leonardo Boiko leoboiko@conectiva.com.br Loulou Pouchet loulou@lrde.epita.fr Maciej Stachowiak mstachow@mit.edu Maciej W. Rozycki macro@ds2.pg.gda.pl diff --git a/doc/automake.texi b/doc/automake.texi index 43c6dd125..8a0afce9a 100644 --- a/doc/automake.texi +++ b/doc/automake.texi @@ -2873,9 +2873,24 @@ nobase_include_HEADERS = sys/types.h either @samp{dist_} or @samp{nodist_} (@pxref{Dist}). For instance: @example -nobase_dist_pkgdata_DATA = images/vortex.pgm +nobase_dist_pkgdata_DATA = images/vortex.pgm sounds/whirl.ogg @end example +Finally, note that a variable using the @samp{nobase_} prefix can +always be replaced by several variables, one for each destination +directory (@pxref{Uniform}). For instance the last example could be +rewritten as follows. + +@example +imagesdir = $(pkgdatadir)/images +soundsdir = $(pkgdatadir)/sounds +dist_images_DATA = images/vortex.pgm +dist_sounds_DATA = sounds/whirl.ogg +@end example + +@noindent +This latter syntax makes it possible to change one destination +directory without changing the layout of the source tree. @node Subpackages @section Nesting Packages