doc: Support texi2any and texi2html

This was tested with texi2html-1.82-5.1.el6.noarch and
a locally built texinfo 5.0. These are completely different
implementations and require different invocations.

The Makefile dependencies appear to work but are likely not
perfect at this point.  The key point is that the autoconf
probe detects which to use and responds accordingly with
preference given to texi2any.
This commit is contained in:
Joel Sherrill
2013-02-21 19:19:48 -06:00
parent b6ecf33c99
commit 94ca0708a2
5 changed files with 80 additions and 19 deletions

View File

@@ -1,4 +1,4 @@
# HACK: makeinfo is locale sensitive
# HACK: makeinfo is locale sensitive
LANG=C
SUFFIXES = .t
@@ -37,20 +37,42 @@ CLEANFILES += $(PROJECT).pdf
MOSTLYCLEANFILES += $(PDF_IMAGES)
## HTML
## HTML
SUFFIXES += .html
$(PROJECT)*.html: $(PROJECT).texi $($(PROJECT)_TEXINFOS)
if USE_HTML
<<<<<<< HEAD
html_project_DATA =
=======
html_project_DATA =
MOSTLYCLEANFILES += $(PROJECT)*.html
html_project_DATA += *.html
>>>>>>> bdf959d... doc/project.am: Fix whitespace at EOL
if USE_TEXI2HTML
index.html $(PROJECT)*.html: $(PROJECT).texi $($(PROJECT)_TEXINFOS)
rm -rf $(PROJECT).html
$(TEXI2HTML) $(TEXI2HTML_ARGS) --menu $< $<
-rm -rf $(PROJECT)
MOSTLYCLEANFILES += $(PROJECT)*.html
## Common installation points
if USE_HTML
html_project_DATA = $(PROJECT)*.html
endif
html_project_DATA += index.html $(PROJECT)*.html
endif # USE_TEXI2HTML
if USE_TEXI2ANY
index.html *.html: $(PROJECT).texi $($(PROJECT)_TEXINFOS)
rm -rf $(PROJECT).html
$(TEXI2ANY) $(TEXI2ANY_ARGS) $<
MOSTLYCLEANFILES += $(PROJECT)/*.html
html_project_DATA += *.html
endif # USE_TEXI2ANY
endif # USE_HTML
if USE_DVI
dvi_DATA = $(PROJECT).dvi