]> sourceware.org Git - automake.git/commitdiff
* doc/automake.texi (Scripts): Fix some errors in previous patch.
authorAlexandre Duret-Lutz <adl@gnu.org>
Fri, 4 Aug 2006 16:27:37 +0000 (16:27 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Fri, 4 Aug 2006 16:27:37 +0000 (16:27 +0000)
ChangeLog
doc/automake.texi

index 435d028a158ecf5c81e3d93887c5ef9dc5631048..7a811f47fa3f84c8d812305a0d500c27cae6da93 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,7 @@
 2006-08-04  Alexandre Duret-Lutz  <adl@gnu.org>
 
+       * doc/automake.texi (Scripts): Fix some errors in previous patch.
+
        * doc/automake.texi (Scripts): Revamp.  Show an example of script
        built from configure.ac.  Discuss CLEANFILES and EXTRA_DIST for
        other built scripts.
index ae013d57e8c3afee09949cb15e4706b63e3583a8..c67b7f9f6fc17c676d63a43b4a062f42256c214f 100644 (file)
@@ -5364,25 +5364,29 @@ the rebuild rules should look like.
 For instance if @file{configure.ac} contains
 
 @example
-AC_CONFIG_FILES([src/my_script])
+AC_CONFIG_FILES([src/my_script], [chmod +x src/my_script])
 @end example
 
 @noindent
-to build @file{src/my_script} from @file{src/my_script}, then an
+to build @file{src/my_script} from @file{src/my_script.in}, then an
 @file{src/Makefile.am} to install this script in @code{$(bindir)} can
 be as simple as
 
 @example
 bin_SCRIPTS = my_script
+CLEANFILES = $(bin_SCRIPTS)
 @end example
 
 @noindent
-There is no need for @code{EXTRA_DIST}, @code{CLEANFILES}, or any
-build rule: Automake infers them from @code{AC_CONFIG_FILES}
-(@pxref{Requirements}).  This looks simpler, however building scripts
-this way has one drawback: directory variables such as
-@code{$(datadir)} are not fully expanded and may refer to other
-directory variables.
+There is no need for @code{EXTRA_DIST} or any build rule: Automake
+infers them from @code{AC_CONFIG_FILES} (@pxref{Requirements}).
+@code{CLEANFILES} is still useful, because by default Automake will
+clean targets of @code{AC_CONFIG_FILES} in @code{distclean}, not
+@code{clean}.
+
+Although this looks simpler, building scripts this way has one
+drawback: directory variables such as @code{$(datadir)} are not fully
+expanded and may refer to other directory variables.
 
 @node Headers
 @section Header files
This page took 0.037415 seconds and 5 git commands to generate.