]> granicus.if.org Git - postgis/commitdiff
#2204: regina programming in dark trying to put in epub build logic
authorRegina Obe <lr@pcorp.us>
Sat, 4 May 2013 16:59:38 +0000 (16:59 +0000)
committerRegina Obe <lr@pcorp.us>
Sat, 4 May 2013 16:59:38 +0000 (16:59 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11352 b70326c6-7e19-0410-871a-916f4a2858ee

doc/Makefile.in

index b7439802495f470d7f92ceebf9c9fa4ab72ee9b9..9099ea367b6207eee6d0b8c1c46ec9d2b0757512 100644 (file)
@@ -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)