From: Petter Reinholdtsen Date: Wed, 31 Jan 2018 09:40:44 +0000 (+0000) Subject: Add build rule for epub using docbook file. X-Git-Tag: es-printed~600^2^2 X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/commitdiff_plain/30c6e4a3423025739b7de670d2ee8345872592bd?ds=sidebyside Add build rule for epub using docbook file. --- diff --git a/Makefile b/Makefile index f90b740..42dbd74 100644 --- a/Makefile +++ b/Makefile @@ -26,7 +26,7 @@ PANDOC_OPTS = --top-level-division=part -t docbook -f markdown+inline_notes+asci LANGS = de es nb nl pl -all: pdf +all: pdf epub distclean: clean rm -f $(SOURCE).md @@ -78,6 +78,10 @@ pdf: $(SOURCE).pdf pdflatex $^ pdflatex $^ +epub: $(SOURCE).epub +%.epub: %.xml + dbtoepub $^ + %.tex: %.xml dblatex -t tex -b xetex $^ perl -p -i -e 's/\[latin1\]\{inputenc\}/[utf8]{inputenc}\n\\usepackage[$(TEXLANG)]{babel}/; \