]> pere.pagekite.me Git - text-mekanikerord.git/commitdiff
Add epub rule and improve distclean rule.
authorPetter Reinholdtsen <pere@hungry.com>
Fri, 14 Aug 2020 17:27:33 +0000 (19:27 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Fri, 14 Aug 2020 17:27:33 +0000 (19:27 +0200)
Makefile

index 5421581bc6edbbecc28bd136ee0e44a57911f0ac..82b58c812e416b4d2a37924465558fe54cee2638 100644 (file)
--- 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