8000 doc: Add make target to produce EPUB from DocBook · postgrespro/postgres_cluster@ff64fd4 · GitHub
[go: up one dir, main page]

Skip to content

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit ff64fd4

Browse files
committed
doc: Add make target to produce EPUB from DocBook
1 parent 71627f3 commit ff64fd4

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

doc/src/sgml/Makefile

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,8 @@ endif
4646

4747
override XSLTPROCFLAGS += --stringparam pg.version '$(VERSION)'
4848

49+
DBTOEPUB ?= dbtoepub
50+
4951

5052
GENERATED_SGML = bookindex.sgml version.sgml \
5153
features-supported.sgml features-unsupported.sgml errcodes-table.sgml
@@ -271,6 +273,10 @@ htmlhelp: stylesheet-hh.xsl postgres.xml
271273
%-US.fo: stylesheet-fo.xsl %.xml
272274
$(XSLTPROC) $(XSLTPROCFLAGS) --stringparam paper.type USletter -o $@ $^
273275

276+
epub: postgres.epub
277+
postgres.epub: postgres.xml
278+
$(DBTOEPUB) $<
279+
274280

275281
##
276282
## Experimental Texinfo targets
@@ -385,6 +391,8 @@ clean:
385391
rm -f HTML.index $(GENERATED_SGML)
386392
# XSLT
387393
rm -f postgres.xml postgres.xmltmp htmlhelp.hhp toc.hhc index.hhk *.fo
394+
# EPUB
395+
rm -f postgres.epub
388396
# Texinfo
389397
rm -f *.texixml *.texi *.info db2texi.refs
390398

0 commit comments

Comments
 (0)
0