From 44ae2a4d4b25c376ab2a13555fea9b1c7afcf7c2 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Fri, 14 Aug 2020 19:27:33 +0200 Subject: [PATCH] Add epub rule and improve distclean rule. --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 5421581..82b58c8 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,18 @@ -all: book.pdf +SOURCE = book.xml glossary.xml +all: book.pdf book.epub clean: $(RM) *~ distclean: clean + $(RM) glossary.xml book.pdf book.epub XMLLINTOPTS = --nonet --noout --xinclude --postvalid lint: book.xml glossary.xml xmllint $(XMLLINTOPTS) book.xml glossary.xml: make-glossary meksme-utf8.xml - ./make-glossary > glossary.rst + ./make-glossary DBLATEX_OPTS = \ -T simple \ @@ -19,5 +21,9 @@ DBLATEX_OPTS = \ -V \ -P latex.index.tool=xindy \ -p pdf.xsl -book.pdf: book.xml glossary.xml + +book.pdf: $(SOURCE) dblatex $(DBLATEX_OPTS) book.xml + +book.epub: $(SOURCE) + dbtoepub book.xml -- 2.47.2