]> sourceware.org Git - automake.git/commitdiff
* doc/automake.texi (Headers): Revamp.
authorAlexandre Duret-Lutz <adl@gnu.org>
Sun, 25 Apr 2004 10:01:21 +0000 (10:01 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Sun, 25 Apr 2004 10:01:21 +0000 (10:01 +0000)
ChangeLog
doc/automake.texi
doc/stamp-vti
doc/version.texi

index 220fda416d7616c06a42f2cc57cca2b064e1d4f4..df21a0bc41190786ca4b2347734f0b89b4a8d1be 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2004-04-25  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * doc/automake.texi (Headers): Revamp.
+
 2004-04-24  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * automake.in (check_typos): Clarify the diagnostic.
index 414886a057aca0e5e524529d68e294ad0f12c2d2..09e49007b86ecc6528409ef8f93ccac4fba584f9 100644 (file)
@@ -4293,30 +4293,57 @@ Scripts that need not being installed can be listed in
 @cindex Primary variable, HEADERS
 
 @vindex noinst_HEADERS
-
-Header files are specified by the @samp{HEADERS} family of variables.
-Generally header files are not installed, so the @code{noinst_HEADERS}
-variable will be the most used.  @footnote{However, for the case of a
-non-installed header file that is actually used by a particular program,
-we recommend listing it in the program's @samp{_SOURCES} variable
-instead of in @code{noinst_HEADERS}.  We believe this is more clear.}
-@vindex HEADERS
-
-All header files must be listed somewhere; missing ones will not appear
-in the distribution.  Often it is clearest to list uninstalled headers
-with the rest of the sources for a program.  @xref{A Program}.  Headers
-listed in a @samp{_SOURCES} variable need not be listed in any
-@samp{_HEADERS} variable.
-
 @cindex HEADERS, installation directories
 @cindex Installing headers
-
 @vindex include_HEADERS
 @vindex oldinclude_HEADERS
 @vindex pkginclude_HEADERS
 
-Headers can be installed in @code{includedir}, @code{oldincludedir}, or
-@code{pkgincludedir}.
+
+Header files that must be installed are specified by the
+@samp{HEADERS} family of variables.  Headers can be installed in
+@code{includedir}, @code{oldincludedir}, @code{pkgincludedir} or any
+other directory you may have defined (@pxref{Uniform}).  For instance
+
+@example
+include_HEADERS = foo.h bar/bar.h
+@end example
+
+@noindent
+will install the two files as @file{$(includedir)/foo.h} and
+@file{$(includedir)/bar.h}.
+
+The @samp{nobase_} prefix is also supported,
+
+@example
+nobase_include_HEADERS = foo.h bar/bar.h
+@end example
+
+@noindent
+will install the two files as @file{$(includedir)/foo.h} and
+@file{$(includedir)/bar/bar.h} (@pxref{Alternative}).
+
+@vindex noinst_HEADERS
+Usually, only header files that accompany installed libraries need to
+be installed.  Headers used by programs or convenience libraries are
+not installed.  The @code{noinst_HEADERS} variable can be used for
+such headers.  However when the header actually belongs to one
+convenient library or program, we recommend listing it in the
+program's or library's @samp{_SOURCES} variable (@pxref{Program
+Sources}) instead of in @code{noinst_HEADERS}.  This is clearer for
+the @file{Makefile.am} reader.  @code{noinst_HEADERS} would be the
+right variable to use in a directory containing only headers and no
+associated library or program.
+
+All header files must be listed somewhere; in a @samp{_SOURCES}
+variable or in a @samp{_HEADERS} variable.  Missing ones will not
+appear in the distribution.
+
+For header files that are built and must not be distributed, use the
+@samp{nodist_} prefix as in @code{nodist_include_HEADERS} or
+@code{nodist_prog_SOURCES}.  If these generated headers are needed
+during the build, you must also ensure they exist before they are
+used, see @xref{Sources}.
 
 
 @node Data
@@ -5946,7 +5973,7 @@ is then compressed according to the set of @code{no-dist-gzip},
 @code{dist-bzip2} and @code{dist-tarZ} options in use.)
 
 These options must be passed as argument to @code{AM_INIT_AUTOMAKE}
-(@xref{Macros}) because they can causes new configure check to be
+(@pxref{Macros}) because they can causes new configure check to be
 performed.  Automake will complain if it sees such option in a
 @code{AUTOMAKE_OPTIONS} variable.
 
index 07fa958e8ec79d77d216ed0dce754b92d9ca2365..d06a374fc947493500d4213c0fa433372b546c06 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 23 April 2004
+@set UPDATED 25 April 2004
 @set UPDATED-MONTH April 2004
 @set EDITION 1.8a
 @set VERSION 1.8a
index 07fa958e8ec79d77d216ed0dce754b92d9ca2365..d06a374fc947493500d4213c0fa433372b546c06 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 23 April 2004
+@set UPDATED 25 April 2004
 @set UPDATED-MONTH April 2004
 @set EDITION 1.8a
 @set VERSION 1.8a
This page took 0.067849 seconds and 5 git commands to generate.