|
46 | 46 |
|
47 | 47 | overrideXSLTPROCFLAGS += --stringparam pg.version '$(VERSION)' |
48 | 48 |
|
| 49 | +DBTOEPUB ?= dbtoepub |
| 50 | + |
49 | 51 |
|
50 | 52 | GENERATED_SGML = bookindex.sgml version.sgml\ |
51 | 53 | features-supported.sgml features-unsupported.sgml errcodes-table.sgml |
@@ -271,6 +273,10 @@ htmlhelp: stylesheet-hh.xsl postgres.xml |
271 | 273 | %-US.fo: stylesheet-fo.xsl%.xml |
272 | 274 | $(XSLTPROC)$(XSLTPROCFLAGS) --stringparam paper.type USletter -o$@$^ |
273 | 275 |
|
| 276 | +epub: postgres.epub |
| 277 | +postgres.epub: postgres.xml |
| 278 | +$(DBTOEPUB)$< |
| 279 | + |
274 | 280 |
|
275 | 281 | ## |
276 | 282 | ## Experimental Texinfo targets |
@@ -385,6 +391,8 @@ clean: |
385 | 391 | rm -f HTML.index $(GENERATED_SGML) |
386 | 392 | # XSLT |
387 | 393 | rm -f postgres.xml postgres.xmltmp htmlhelp.hhp toc.hhc index.hhk *.fo |
| 394 | +# EPUB |
| 395 | +rm -f postgres.epub |
388 | 396 | # Texinfo |
389 | 397 | rm -f *.texixml *.texi *.info db2texi.refs |
390 | 398 |
|
|