]> pere.pagekite.me Git - text-madewithcc.git/commitdiff
Add make rule to build text version.
authorPetter Reinholdtsen <pere@hungry.com>
Tue, 6 Mar 2018 09:11:26 +0000 (09:11 +0000)
committerPetter Reinholdtsen <pere@hungry.com>
Tue, 6 Mar 2018 09:11:26 +0000 (09:11 +0000)
Makefile

index 87758dbbd2cb305dd9916ab6f62709c963e0be49..ebedadfbb96d490c96db3d2b8bbd94c5d5df5218 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -107,6 +107,10 @@ epub: $(SOURCE).epub
 %.epub: %.xml
        dbtoepub $^
 
 %.epub: %.xml
        dbtoepub $^
 
+# Useful for spell checking the text
+%.txt: %.xml
+       xmlto txt $<
+
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
 lint: $(SOURCE).xml
        xmllint $(XMLLINTOPTS) $^
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
 lint: $(SOURCE).xml
        xmllint $(XMLLINTOPTS) $^