From 5f8a203b556c649ef25b4b855ee795b6cff23e98 Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Thu, 1 Nov 2007 14:42:44 +0000 Subject: [PATCH] * A rule to make a PDF version of the manual. --- configure.ac | 1 + doc/manual/Makefile.am | 8 ++++++++ 2 files changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index 21c43b649..822b15b4b 100644 --- a/configure.ac +++ b/configure.ac @@ -135,6 +135,7 @@ AC_PATH_PROG(bison, bison, false) NEED_PROG(perl, perl) NEED_PROG(tar, tar) AC_PATH_PROG(dot, dot) +AC_PATH_PROG(dblatex, dblatex) AC_PATH_PROG(openssl_prog, openssl, openssl) # if not found, call openssl in $PATH AC_SUBST(openssl_prog) diff --git a/doc/manual/Makefile.am b/doc/manual/Makefile.am index ac030ee56..1011ee7aa 100644 --- a/doc/manual/Makefile.am +++ b/doc/manual/Makefile.am @@ -47,6 +47,14 @@ manual.html: $(MANUAL_SRCS) manual.is-valid images $(XSLTPROC) --nonet --xinclude --output manual.html \ $(docbookxsl)/html/docbook.xsl manual.xml +manual.pdf: $(MANUAL_SRCS) manual.is-valid images + if test "$(dblatex)" != ""; then \ + $(dblatex) manual.xml; \ + else \ + echo "Please install dblatex and rerun configure."; \ + exit 1; \ + fi + NEWS_OPTS = \ --stringparam generate.toc "article nop" \