From: Petter Reinholdtsen Date: Fri, 14 Aug 2020 17:27:33 +0000 (+0200) Subject: Add epub rule and improve distclean rule. X-Git-Tag: published-en-nb-2021-07-17~83 X-Git-Url: https://pere.pagekite.me/gitweb/text-mekanikerord.git/commitdiff_plain/44ae2a4d4b25c376ab2a13555fea9b1c7afcf7c2?hp=a177fa87688710cd92b8c92e98225b5066ad6eb2 Add epub rule and improve distclean rule. --- 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