]> sourceware.org Git - automake.git/commitdiff
* doc/automake.texi (Texinfo): Define MAKEINFO, MAKEINFOHTML,
authorAlexandre Duret-Lutz <adl@gnu.org>
Tue, 11 Nov 2003 00:07:15 +0000 (00:07 +0000)
committerAlexandre Duret-Lutz <adl@gnu.org>
Tue, 11 Nov 2003 00:07:15 +0000 (00:07 +0000)
MAKEINFOFLAGS, AM_MAKEINFOFLAGS, AM_MAKEINFOHTMLFLAGS, TEXI2DVI,
TEXI2PDF, DVIPS, and TEXINFO_TEX in a table.
(Uniform): Do not speak of missing HTML support, this is
confusing.
* lib/Automake/Variable.pm (_silent_variable_override): Add
AM_MAKEINFOHTMLFLAGS.
* lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Use MAKEINFOHTML and
AM_MAKEINFOHTMLFLAGS instead of MAKEINFO and AM_MAKEINFOFLAGS.
* lib/am/texinfos.am (MAKEINFOHTML, AM_MAKEINFOHTMLFLAGS): Define.
* tests/txinfo21.test: Add a test with AM_MAKEINFOHTMLFLAGS.

ChangeLog
doc/automake.texi
doc/stamp-vti
doc/version.texi
lib/Automake/Variable.pm
lib/am/texibuild.am
lib/am/texinfos.am
tests/txinfo21.test

index 8b05edff9a4cfbcce3aaca43c087d913dcabb644..bb9c9fdbf3d2f131af56e0c093fb4cc7187f7e26 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,17 @@
+2003-11-11  Alexandre Duret-Lutz  <adl@gnu.org>
+
+       * doc/automake.texi (Texinfo): Define MAKEINFO, MAKEINFOHTML,
+       MAKEINFOFLAGS, AM_MAKEINFOFLAGS, AM_MAKEINFOHTMLFLAGS, TEXI2DVI,
+       TEXI2PDF, DVIPS, and TEXINFO_TEX in a table.
+       (Uniform): Do not speak of missing HTML support, this is
+       confusing.
+       * lib/Automake/Variable.pm (_silent_variable_override): Add
+       AM_MAKEINFOHTMLFLAGS.
+       * lib/am/texibuild.am (%SOURCE_SUFFIX%.html): Use MAKEINFOHTML and
+       AM_MAKEINFOHTMLFLAGS instead of MAKEINFO and AM_MAKEINFOFLAGS.
+       * lib/am/texinfos.am (MAKEINFOHTML, AM_MAKEINFOHTMLFLAGS): Define.
+       * tests/txinfo21.test: Add a test with AM_MAKEINFOHTMLFLAGS.
+
 2003-11-10  Alexandre Duret-Lutz  <adl@gnu.org>
 
        * tests/spy.test: New file.
index f5571a75d78f1bdb322c9ad5b87ab0a6989248e6..4606a643277049195db79352826888e434cc8ee2 100644 (file)
@@ -420,10 +420,10 @@ end, Automake allows you to extend the list of possible installation
 directories.  A given prefix (e.g. @samp{zar}) is valid if a variable of
 the same name with @samp{dir} appended is defined (e.g. @code{zardir}).
 
-@cindex HTML support, example
+@cindex HTML installation, example
 
-For instance, until HTML support is part of Automake, you could use this
-to install raw HTML documentation:
+For instance, installation of HTML files is part of Automake, you could
+use this to install raw HTML documentation:
 
 @example
 htmldir = $(prefix)/html
@@ -4611,6 +4611,10 @@ Currently Automake provides support for Texinfo and man pages.
 @cindex _TEXINFOS primary, defined
 @cindex TEXINFOS primary, defined
 @cindex Primary variable, TEXINFOS
+@cindex HTML output using Texinfo
+@cindex PDF output using Texinfo
+@cindex PS output using Texinfo
+@cindex DVI output using Texinfo
 
 If the current directory contains Texinfo source, you must declare it
 with the @samp{TEXINFOS} primary.  Generally Texinfo files are converted
@@ -4670,18 +4674,6 @@ file for each Texinfo file.  Automake will treat any include in a
 Texinfo file that matches @samp{vers*.texi} just as an automatically
 generated version file.
 
-When an info file is rebuilt, the program named by the @code{MAKEINFO}
-variable is used to invoke it.  If the @code{makeinfo} program is found
-on the system then it will be used by default; otherwise @code{missing}
-will be used instead.  The flags in the variables @code{MAKEINFOFLAGS}
-and @code{AM_MAKEINFOFLAGS} will be passed to the @code{makeinfo}
-invocation; the first of these is intended for use by the user
-(@pxref{User Variables}) and the second by the @file{Makefile.am}
-writer.
-@vindex MAKEINFO
-@vindex MAKEINFOFLAGS
-@vindex AM_MAKEINFOFLAGS
-
 Sometimes an info file actually depends on more than one @file{.texi}
 file.  For instance, in GNU Hello, @file{hello.texi} includes the file
 @file{gpl.texi}.  You can tell Automake about these dependencies using
@@ -4697,24 +4689,13 @@ hello_TEXINFOS = gpl.texi
 @cindex texinfo.tex
 
 By default, Automake requires the file @file{texinfo.tex} to appear in
-the same directory as the Texinfo source.  However, if you used
+the same directory as the Texinfo source (this can be changed using the
+@code{TEXINFO_TEX} variable, see below).  However, if you used
 @code{AC_CONFIG_AUX_DIR} in @file{configure.ac} (@pxref{Input, , Finding
 `configure' Input, autoconf, The Autoconf Manual}), then
 @file{texinfo.tex} is looked for there.  Automake supplies
 @file{texinfo.tex} if @samp{--add-missing} is given.
 
-@vindex TEXINFO_TEX
-
-If your package has Texinfo files in many directories, you can use the
-variable @code{TEXINFO_TEX} to tell Automake where to find the canonical
-@file{texinfo.tex} for your package.  The value of this variable should
-be the relative path from the current @file{Makefile.am} to
-@file{texinfo.tex}:
-
-@example
-TEXINFO_TEX = ../doc/texinfo.tex
-@end example
-
 @opindex no-texinfo.tex
 
 The option @samp{no-texinfo.tex} can be used to eliminate the
@@ -4734,6 +4715,71 @@ Automake generates an @code{install-info} target; some people apparently
 use this.  By default, info pages are installed by @samp{make install}.
 This can be prevented via the @code{no-installinfo} option.
 
+The following variables are used by the Texinfo build rules.
+
+@vtable @code
+@item MAKEINFO
+The name of the program invoked to build @file{.info} files.  This
+variable is defined by Automake.  If the @code{makeinfo} program is
+found on the system then it will be used by default; otherwise
+@code{missing} will be used instead.
+
+@item MAKEINFOHTML
+The command invoked to build @file{.html} files.  Automake
+defines this to @code{$(MAKEINFO) --html}.
+
+@item MAKEINFOFLAGS
+User flags passed to each invocation of @code{$(MAKEINFO)} and
+@code{$(MAKEINFOHTML)}.  This user variable (@pxref{User Variables}) is
+not expected to be defined in any @file{Makefile}; it can be used by
+users to pass extra flags to suit their needs.
+
+@item AM_MAKEINFOFLAGS
+@itemx AM_MAKEINFOHTMLFLAGS
+Maintainer flags passed to each @code{makeinfo} invocation.  These
+are maintainer variables that can be overridden in @file{Makefile.am}.
+@code{$(AM_MAKEINFOFLAGS)} is passed to @code{makeinfo} when building
+@file{.info} files; and @code{$(AM_MAKEINFOHTMLFLAGS)} is used when
+building @file{.html} files.
+
+For instance the following setting can be used to obtain one single
+@file{.html} file per manual, without node separators.
+@example
+AM_MAKEINFOHTMLFLAGS = --no-headers --no-split
+@end example
+
+By default, @code{$(AM_MAKEINFOHTMLFLAGS)} is set to
+@code{$(AM_MAKEINFOFLAGS)}.  This means that defining
+@code{$(AM_MAKEINFOFLAGS)} without defining
+@code{$(AM_MAKEINFOHTMLFLAGS)} will impact builds of both @file{.info}
+and @file{.html} files.
+
+@item TEXI2DVI
+The name of the command that converts a @file{.texi} file into a
+@file{.dvi} file.  This defaults to @code{texi2dvi}, a script that ships
+with the Texinfo package.
+
+@item TEXI2PDF
+The name of the command that translates a @file{.texi} file into a
+@file{.pdf} file.  This defaults to @code{$(TEXI2DVI) --pdf --batch}.
+
+@item DVIPS
+The name of the command that build a @file{.ps} file out of a
+@file{.dvi} file.  This defaults to @code{dvips}.
+
+@item TEXINFO_TEX
+
+If your package has Texinfo files in many directories, you can use the
+variable @code{TEXINFO_TEX} to tell Automake where to find the canonical
+@file{texinfo.tex} for your package.  The value of this variable should
+be the relative path from the current @file{Makefile.am} to
+@file{texinfo.tex}:
+
+@example
+TEXINFO_TEX = ../doc/texinfo.tex
+@end example
+@end vtable
+
 
 @node Man pages
 @section Man pages
@@ -6699,7 +6745,7 @@ Note that the renaming of objects is also affected by the
 @c  LocalWords:  DISTCLEANFILES MAINTAINERCLEANFILES gzip'd GZIP gzip shar exp
 @c  LocalWords:  distdir distcheck distcleancheck listfiles distuninstallcheck
 @c  LocalWords:  VPATH tarfile stdout XFAIL DejaGnu dejagnu DEJATOOL runtest ln
-@c  LocalWords:  RUNTESTDEFAULTFLAGS toolchain RUNTESTFLAGS asis readme
+@c  LocalWords:  RUNTESTDEFAULTFLAGS toolchain RUNTESTFLAGS asis readme DVIPS
 @c  LocalWords:  installcheck gzipped tarZ std utils etags mkid multilibbing cd
 @c  LocalWords:  ARGS taggable ETAGSFLAGS lang ctags CTAGSFLAGS GTAGS gtags idl
 @c  LocalWords:  foocc doit idlC multilibs ABIs cmindex defmac ARG enableval
@@ -6709,4 +6755,4 @@ Note that the renaming of objects is also affected by the
 @c  LocalWords:  DSOMEFLAG DVERSION automake Lutz insertcopying versioning FAQ
 @c  LocalWords:  LTLIBOBJ Libtool's libtool's libltdl dlopening itutions libbar
 @c  LocalWords:  WANTEDLIBS libhello sublibraries libtop libsub dlopened Ratfor
-@c  LocalWords:  mymodule timestamps timestamp underquoted
+@c  LocalWords:  mymodule timestamps timestamp underquoted MAKEINFOHTMLFLAGS
index fbcd5b0246dd873c7342504f6c2bab0120713b58..eef25dad6657143186584c517be9e2993b07ef83 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 10 November 2003
+@set UPDATED 11 November 2003
 @set UPDATED-MONTH November 2003
 @set EDITION 1.7a
 @set VERSION 1.7a
index fbcd5b0246dd873c7342504f6c2bab0120713b58..eef25dad6657143186584c517be9e2993b07ef83 100644 (file)
@@ -1,4 +1,4 @@
-@set UPDATED 10 November 2003
+@set UPDATED 11 November 2003
 @set UPDATED-MONTH November 2003
 @set EDITION 1.7a
 @set VERSION 1.7a
index b9ded9187f0c54c0d60157d41b2a2707a7823254..48d21a4ca2ca298bf9a89ffcdde93671640ccbd6 100644 (file)
@@ -184,7 +184,8 @@ my $configure_ac = find_configure_ac;
 
 # Variables that can be overriden without complaint from -Woverride
 my %_silent_variable_override =
-  (AR => 1,
+  (AM_MAKEINFOHTMLFLAGS => 1,
+   AR => 1,
    ARFLAGS => 1,
    DEJATOOL => 1,
    JAVAC => 1);
index d8dc4fc8c749b9b01be8bd7f888dcea28da5e75d..dbb8a3cb64de8a7b33e6cb7844e8bb3853f4848f 100644 (file)
@@ -85,7 +85,7 @@ INFO_DEPS += %DEST_INFO_PREFIX%%DEST_SUFFIX%
 
 ?GENERIC?%SOURCE_SUFFIX%.html:
 ?!GENERIC?%DEST_PREFIX%.html: %SOURCE% %DEPS% %DIRSTAMP%
-       $(MAKEINFO) $(AM_MAKEINFOFLAGS) $(MAKEINFOFLAGS) --html %MAKEINFOFLAGS% \
+       $(MAKEINFOHTML) $(AM_MAKEINFOHTMLFLAGS) $(MAKEINFOFLAGS) %MAKEINFOFLAGS% \
 ?GENERIC?       -o $@ %SOURCE%
 ?!GENERIC?      -o $@ `test -f '%SOURCE%' || echo '$(srcdir)/'`%SOURCE%
 
index f13724dcd9bd0687e9c53045ddceea4b595e3f56..21e5a055d6867ba9ae1363409b928ccdc73ee64c 100644 (file)
@@ -44,6 +44,8 @@ TEXI2DVI = `if test -f $(top_srcdir)/../texinfo/util/texi2dvi; then \
 endif %?CYGNUS%
 
 TEXI2PDF = $(TEXI2DVI) --pdf --batch
+MAKEINFOHTML = $(MAKEINFO) --html
+AM_MAKEINFOHTMLFLAGS = $(AM_MAKEINFOFLAGS)
 endif %?LOCAL-TEXIS%
 
 
index 9c2b957f0d1516c7fa87905e490d6874723fd3e2..44e7177af4214f0c1465810861d3d13771657ed6 100755 (executable)
@@ -80,3 +80,19 @@ $MAKE clean
 test ! -f main.html
 test ! -f sub/main.html
 test ! -f rec/main.html
+
+# Make sure AM_MAKEINFOHTMLFLAGS is supported, and override AM_MAKEINFO.
+cat >>Makefile.am <<\EOF
+AM_MAKEINFOHTMLFLAGS=--no-split
+AM_MAKEINFOFLAGS=--unsupported-option
+EOF
+$AUTOMAKE
+./configure
+$MAKE html
+test -f main.html
+test -f sub/main.html
+test -d rec/main.html
+$MAKE clean
+test ! -f main.html
+test ! -f sub/main.html
+test ! -d rec/main.html
This page took 0.045857 seconds and 5 git commands to generate.