Build the HTML manual; add the HTML & PDF to the distribution; install them.

* doc/manual/Makefile.am (dist_html_DATA, dist_pdf_DATA): New variables.
  (manual.html): New target.
  (manual.pdf): Use $(DBLATEX), uppercase.

* configure.ac: Check for `xsltproc'.  Add `--with-docbook-xsl' option.
This commit is contained in:
Ludovic Courtès
2011-07-04 14:48:38 +00:00
parent 63e3e869c9
commit 666f543122
2 changed files with 26 additions and 3 deletions

View File

@ -7,9 +7,22 @@ dblatex_opts = \
-P doc.collab.show=0 \
-P latex.output.revhistory=0
# Include the manual in the tarball.
dist_html_DATA = manual.html
dist_pdf_DATA = manual.pdf
manual.html: $(DOCBOOK_FILES)
if test "$(XSLTPROC)" != ""; then \
$(XSLTPROC) --nonet --xinclude --output manual.html \
$(docbookxsl)/html/docbook.xsl manual.xml; \
else \
@echo "Please install xsltproc and rerun configure."; \
exit 1; \
fi
manual.pdf : $(DOCBOOK_FILES)
if test "$(dblatex)" != ""; then \
$(dblatex) $(dblatex_opts) manual.xml; \
if test "$(DBLATEX)" != ""; then \
$(DBLATEX) $(dblatex_opts) manual.xml; \
else \
echo "Please install dblatex and rerun configure."; \
exit 1; \