2005-02-26 Alexandre Duret-Lutz <adl@gnu.org>
+ * 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.
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
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