>>> "Leonardo" == Leonardo Boiko <[EMAIL PROTECTED]> writes:
[...]
Leonardo> I don't know if all that sounded silly or obvious,
Leonardo> but if not, may I suggest a cross-reference from the
Leonardo> "An Alternative Approach..." node to the "Uniform
Leonardo> Naming Scheme" node?
Thanks for the suggestion, I'm installing this on HEAD and branch-1-9.
2005-02-26 Alexandre Duret-Lutz <[EMAIL PROTECTED]>
* doc/automake.texi (Alternative): Show how to rewrite nobase_
variables using custom directory variables, and link to node
Uniform. Suggested by Leonardo Boiko.
Index: THANKS
===================================================================
RCS file: /cvs/automake/automake/THANKS,v
retrieving revision 1.265
diff -u -r1.265 THANKS
--- THANKS 8 Feb 2005 21:22:47 -0000 1.265
+++ THANKS 26 Feb 2005 10:31:37 -0000
@@ -137,6 +137,7 @@
Lars J. Aas [EMAIL PROTECTED]
Laurent Morichetti [EMAIL PROTECTED]
Leo Davis [EMAIL PROTECTED]
+Leonardo Boiko [EMAIL PROTECTED]
Loulou Pouchet [EMAIL PROTECTED]
Maciej Stachowiak [EMAIL PROTECTED]
Maciej W. Rozycki [EMAIL PROTECTED]
Index: doc/automake.texi
===================================================================
RCS file: /cvs/automake/automake/doc/automake.texi,v
retrieving revision 1.99
diff -u -r1.99 automake.texi
--- doc/automake.texi 26 Feb 2005 10:05:19 -0000 1.99
+++ doc/automake.texi 26 Feb 2005 10:31:39 -0000
@@ -2873,9 +2873,24 @@
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.
+
[EMAIL PROTECTED]
+imagesdir = $(pkgdatadir)/images
+soundsdir = $(pkgdatadir)/sounds
+dist_images_DATA = images/vortex.pgm
+dist_sounds_DATA = sounds/whirl.ogg
[EMAIL PROTECTED] example
+
[EMAIL PROTECTED]
+This latter syntax makes it possible to change one destination
+directory without changing the layout of the source tree.
@node Subpackages
@section Nesting Packages
--
Alexandre Duret-Lutz