automake-patches
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: FYI: _SCRIPTS doc retake


From: Alexandre Duret-Lutz
Subject: Re: FYI: _SCRIPTS doc retake
Date: Fri, 04 Aug 2006 18:28:27 +0200
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/22.0.50 (gnu/linux)

too fast

2006-08-04  Alexandre Duret-Lutz  <address@hidden>

        * doc/automake.texi (Scripts): Fix some errors in previous patch.

Index: doc/automake.texi
===================================================================
RCS file: /cvs/automake/automake/doc/automake.texi,v
retrieving revision 1.139
diff -u -r1.139 automake.texi
--- doc/automake.texi   4 Aug 2006 16:14:40 -0000       1.139
+++ doc/automake.texi   4 Aug 2006 16:27:29 -0000
@@ -5364,25 +5364,29 @@
 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
address@hidden(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}).
address@hidden is still useful, because by default Automake will
+clean targets of @code{AC_CONFIG_FILES} in @code{distclean}, not
address@hidden
+
+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

-- 
Alexandre Duret-Lutz

Shared books are happy books.     http://www.bookcrossing.com/friend/gadl





reply via email to

[Prev in Thread] Current Thread [Next in Thread]