]> granicus.if.org Git - postgis/commitdiff
Reinstate the PDF documentation system based on OpenJade, including integration with...
authorMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 11 Sep 2008 12:18:37 +0000 (12:18 +0000)
committerMark Cave-Ayland <mark.cave-ayland@siriusit.co.uk>
Thu, 11 Sep 2008 12:18:37 +0000 (12:18 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@2957 b70326c6-7e19-0410-871a-916f4a2858ee

configure.ac
doc/Makefile.in

index 8960a120fee62df40efee5a002487aaf178ab01c..49d9782b2a3bf116f80b84f759dfafb19e6c107b 100644 (file)
@@ -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
index 24c3fbb1d259e57bd499f1cd9fb88a821a9784e5..5043a99668875005240252c4886b00c174181d2e 100644 (file)
@@ -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 \