From: Regina Obe Date: Sat, 4 May 2013 16:59:38 +0000 (+0000) Subject: #2204: regina programming in dark trying to put in epub build logic X-Git-Tag: 2.1.0beta2~63 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e5af0401fe0e8c6971058db5a6b8189ffc70f59f;p=postgis #2204: regina programming in dark trying to put in epub build logic git-svn-id: http://svn.osgeo.org/postgis/trunk@11352 b70326c6-7e19-0410-871a-916f4a2858ee --- diff --git a/doc/Makefile.in b/doc/Makefile.in index b74398024..9099ea367 100644 --- a/doc/Makefile.in +++ b/doc/Makefile.in @@ -74,6 +74,9 @@ MSGMERGE=msgmerge # XML gettext tools XML2POT=xml2pot +# DOCBOOK to EPUB +DBTOEPUB=dbtoepub + # Directories for postgresql subdirectories PGSQL_DOCDIR=@PGSQL_DOCDIR@ PGSQL_MANDIR=@PGSQL_MANDIR@ @@ -226,6 +229,17 @@ postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSIO -P latex.output.revhistory=0 \ -o postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}$(DOCSUFFIX).pdf $<; \ fi + +postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}$(DOCSUFFIX).epub: postgis-out.xml images $(XML_INPUTS) + if test x"$(DBTOEPUB)" = x; then \ + echo "Error: dbtoepub not found, can't build epub"; \ + echo " try installing dbtoepub"; \ + false; \ + else \ + $(DBTOEPUB) $<; \ + fi + +epub: postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}$(DOCSUFFIX).epub pdf: postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}$(DOCSUFFIX).pdf @@ -250,6 +264,7 @@ images-clean: clean: rm -f html/*.html rm -f postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.pdf + rm -f postgis-${POSTGIS_MAJOR_VERSION}.${POSTGIS_MINOR_VERSION}.${POSTGIS_MICRO_VERSION}.epub $(MAKE) -C html/image_src clean rm -f $(XML_GENERATED_SOURCES)