]> pere.pagekite.me Git - text-epistlene.git/blobdiff - Makefile
Korriger stavemåten til Kölnerdomen.
[text-epistlene.git] / Makefile
index b72943a69a6cb9a615adda9537901e84e7948256..1ef9f6a2208f019115fe53d9742e28c9a4e808d6 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,7 @@ $(SOURCE).pdf: $(SOURCE).xml Makefile pdf.xsl
 $(SOURCE)-body.xml: $(SOURCE).rst Makefile
        pandoc -s -o $@ $(PANDOC_OPTS) $(SOURCE).rst
        sed -i \
+               -e 's%article%book%g' \
                -e 's%<title>[0-9]*</title>%<title></title>%g' \
                -e 's%^  <blockquote>%  <partintro><blockquote>%g' \
                -e 's%^  </blockquote>%  </blockquote></partintro>%g' \
@@ -27,4 +28,14 @@ $(SOURCE)-body.xml: $(SOURCE).rst Makefile
 .xml.epub:
        dbtoepub -s epub.xsl $^ -o $@
 
+.xml.html:
+       xmlto html-nochunks $^
+
+clean:
+       $(RM) *~
+
+distclean: clean
+       $(RM) gaysir_epistlene.epub gaysir_epistlene.pdf
+       $(RM) gaysir_epistlene-body.xml
+
 .SUFFIXES: .xml .html .pdf .epub