]> pere.pagekite.me Git - text-mekanikerord.git/blobdiff - Makefile
Use formatting rules in epub too.
[text-mekanikerord.git] / Makefile
index fa7a21cfd6c1d1f3011bf14b621d2d7d31b3b052..e8123be155deb7101175b86a0a18137626ef9e4f 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,7 +15,7 @@ distclean: clean
        $(RM) glossary.xml $(GENERATED)
 
 XMLLINTOPTS = --nonet --noout  --xinclude --postvalid
-lint: book.xml glossary.xml
+lint: book.xml glossary-nb.xml
        xmllint $(XMLLINTOPTS) book.xml
 
 epubcheck: book.epub
@@ -40,23 +40,22 @@ mekaniker-ordbok-nb.pdf: $(SOURCE_NB)
        dblatex $(DBLATEX_OPTS) -o $@ book.xml
 
 mekaniker-ordbok-nb.epub: $(SOURCE_NB)
-       dbtoepub book.xml -o $@
+       dbtoepub -s epub.xsl book.xml -o $@
 
 mekaniker-ordbok-nb.html: $(SOURCE_NB)
-       xmlto html-nochunks book.xml
+       xmlto -m pdf.xsl html-nochunks book.xml
        mv book.html $@
 
 book-sme.xml: book.xml
-# dblatex do not understand lang="sme", use "nb" for now
-#      sed -e 's/-nb/-sme/' -e 's/"nb"/"sme"/' < $^ >$@
-       sed -e 's/-nb/-sme/' < $^ >$@
+# dblatex do not understand lang="sme", use "nn" with workarounds in pdf.xsl
+       sed -e 's/-nb/-sme/' -e 's/"nb"/"nn"/' < $^ >$@
 
 mekaniker-ordbok-sme.pdf: $(SOURCE_SME)
        dblatex $(DBLATEX_OPTS) -o $@ book-sme.xml
 
 mekaniker-ordbok-sme.epub: $(SOURCE_SME)
-       dbtoepub book-sme.xml -o $@
+       dbtoepub -s epub.xsl book-sme.xml -o $@
 
 mekaniker-ordbok-sme.html: $(SOURCE_SME)
-       xmlto html-nochunks book-sme.xml
+       xmlto -m pdf.xsl html-nochunks book-sme.xml
        mv book-sme.html $@