From: Mark Cave-Ayland Date: Thu, 11 Sep 2008 12:18:37 +0000 (+0000) Subject: Reinstate the PDF documentation system based on OpenJade, including integration with... X-Git-Tag: 1.4.0b1~747 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2efcfe29e456f69ff0de8b9895a38579f9fe0a58;p=postgis Reinstate the PDF documentation system based on OpenJade, including integration with autoconf. "make postgis.pdf" should now output lovely PDF format documentation :) git-svn-id: http://svn.osgeo.org/postgis/trunk@2957 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/configure.ac b/configure.ac index 8960a120f..49d9782b2 100644 --- a/configure.ac +++ b/configure.ac @@ -66,6 +66,16 @@ if test "x$XSLTPROC" = "x"; then fi +dnl +dnl Search for db2pdf which is required for building PDF documentation +dnl + +AC_PATH_PROG([DB2PDF], [db2pdf], []) +if test "x$DB2PDF" = "x"; then + AC_MSG_WARN([db2pdf is not installed so PDF documentation cannot be built]) +fi + + dnl dnl Allow the user to specify the location of the html/docbook.xsl stylesheet dnl diff --git a/doc/Makefile.in b/doc/Makefile.in index 24c3fbb1d..5043a9966 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -30,6 +30,9 @@ XSLTPROC_HTMLOPTS = \ HTML_DOCBOOK_XSL=$(XSLBASE)/html/docbook.xsl CHUNK_HTML_DOCBOOK_XSL=$(XSLBASE)/html/chunk.xsl +# OpenJade's db2pdf script for PDF generation from DocBook +DB2PDF = @DB2PDF@ + # Directories for documentation and man pages PGSQL_DOCDIR=@PGSQL_DOCDIR@ PGSQL_MANDIR=@PGSQL_MANDIR@ @@ -62,6 +65,15 @@ html/postgis.html: postgis-out.xml $(HTML_DOCBOOK_XSL) \ $< +postgis.pdf: postgis-out.xml + @if test x"$(DB2PDF)" = x; then \ + echo "Error: db2pdf not found, can't build posgis.pdf"; \ + echo " try installing docbook-utils package and then re-run configure"; \ + false; \ + else \ + $(DB2PDF) $< && mv postgis-out.pdf postgis.pdf; \ + fi + clean: @rm -f \ postgis-out.xml \