]> pere.pagekite.me Git - text-mekanikerord.git/commitdiff
Add html output and check target to make file.
authorPetter Reinholdtsen <pere@hungry.com>
Sun, 16 Aug 2020 06:23:13 +0000 (08:23 +0200)
committerPetter Reinholdtsen <pere@hungry.com>
Sun, 16 Aug 2020 06:23:13 +0000 (08:23 +0200)
Makefile

index d3fdf65028fbc6d19b52e8365e48e5499f9e72d8..0e65b8557331ea134d2056e164a5ea53c739f132 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,6 @@
 SOURCE = book.xml glossary.xml
 
 SOURCE = book.xml glossary.xml
 
-all: book.pdf book.epub
+all: book.pdf book.epub book.html
 
 clean:
        $(RM) *~
 
 clean:
        $(RM) *~
@@ -12,6 +12,11 @@ XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
 lint: book.xml glossary.xml
        xmllint $(XMLLINTOPTS) book.xml
 
 lint: book.xml glossary.xml
        xmllint $(XMLLINTOPTS) book.xml
 
+epubcheck: book.epub
+       epubcheck book.epub
+
+check: lint epubcheck
+
 glossary.xml: make-glossary meksme-utf8.xml
        ./make-glossary
 
 glossary.xml: make-glossary meksme-utf8.xml
        ./make-glossary
 
@@ -27,3 +32,6 @@ book.pdf: $(SOURCE)
 
 book.epub: $(SOURCE)
        dbtoepub book.xml
 
 book.epub: $(SOURCE)
        dbtoepub book.xml
+
+book.html: $(SOURCE)
+       xmlto html-nochunks book.xml