aboutsummaryrefslogtreecommitdiff
path: root/doc/src
diff options
context:
space:
mode:
authorPeter Eisentraut <peter_e@gmx.net>2013-02-13 23:12:21 -0500
committerPeter Eisentraut <peter_e@gmx.net>2013-02-13 23:12:21 -0500
commitff64fd49ce91534ebbfd5774a8715b11bfc09b97 (patch)
treedc0704f81ed9ea7a8101880486c19ad20b6f8f6e /doc/src
parent71627f3d1964ef9831ea7997d2f4ac5617c718cc (diff)
downloadpostgresql-ff64fd49ce91534ebbfd5774a8715b11bfc09b97.tar.gz
postgresql-ff64fd49ce91534ebbfd5774a8715b11bfc09b97.zip
doc: Add make target to produce EPUB from DocBook
Diffstat (limited to 'doc/src')
-rw-r--r--doc/src/sgml/Makefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/doc/src/sgml/Makefile b/doc/src/sgml/Makefile
index f40a1fe7fc2..aeade13dff3 100644
--- a/doc/src/sgml/Makefile
+++ b/doc/src/sgml/Makefile
@@ -46,6 +46,8 @@ endif
override XSLTPROCFLAGS += --stringparam pg.version '$(VERSION)'
+DBTOEPUB ?= dbtoepub
+
GENERATED_SGML = bookindex.sgml version.sgml \
features-supported.sgml features-unsupported.sgml errcodes-table.sgml
@@ -271,6 +273,10 @@ htmlhelp: stylesheet-hh.xsl postgres.xml
%-US.fo: stylesheet-fo.xsl %.xml
$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam paper.type USletter -o $@ $^
+epub: postgres.epub
+postgres.epub: postgres.xml
+ $(DBTOEPUB) $<
+
##
## Experimental Texinfo targets
@@ -385,6 +391,8 @@ clean:
rm -f HTML.index $(GENERATED_SGML)
# XSLT
rm -f postgres.xml postgres.xmltmp htmlhelp.hhp toc.hhc index.hhk *.fo
+# EPUB
+ rm -f postgres.epub
# Texinfo
rm -f *.texixml *.texi *.info db2texi.refs