X-Git-Url: https://pere.pagekite.me/gitweb/text-mekanikerord.git/blobdiff_plain/b8ddde83c501b752337b9740eb8d22ecac43f141..12b878fe9029d0ac940fc0b45d0de0ceeb3353c5:/Makefile diff --git a/Makefile b/Makefile index e8123be..8a7176e 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,11 @@ SOURCE = pdf.xsl SOURCE_NB = $(SOURCE) book.xml glossary-nb.xml -SOURCE_SME = $(SOURCE) book-sme.xml glossary-sme.xml +SOURCE_SE = $(SOURCE) book-se.xml glossary-se.xml +SOURCE_EN = $(SOURCE) book-en.xml glossary-en.xml GENERATED = \ mekaniker-ordbok-nb.pdf mekaniker-ordbok-nb.epub mekaniker-ordbok-nb.html \ - mekaniker-ordbok-sme.pdf mekaniker-ordbok-sme.epub mekaniker-ordbok-sme.html + mekaniker-ordbok-se.pdf mekaniker-ordbok-se.epub mekaniker-ordbok-se.html all: $(GENERATED) @@ -26,8 +27,8 @@ check: lint epubcheck glossary-nb.xml: make-glossary meksme-utf8.xml LC_COLLATE=nb_NO.UTF-8 ./make-glossary --output $@ nb -glossary-sme.xml: make-glossary meksme-utf8.xml - LC_COLLATE=nb_NO.UTF-8 ./make-glossary --output $@ sme +glossary-se.xml: make-glossary meksme-utf8.xml + LC_COLLATE=nb_NO.UTF-8 ./make-glossary --output $@ se DBLATEX_OPTS = \ -b xetex \ @@ -46,16 +47,16 @@ mekaniker-ordbok-nb.html: $(SOURCE_NB) xmlto -m pdf.xsl html-nochunks book.xml mv book.html $@ -book-sme.xml: book.xml -# dblatex do not understand lang="sme", use "nn" with workarounds in pdf.xsl - sed -e 's/-nb/-sme/' -e 's/"nb"/"nn"/' < $^ >$@ +book-se.xml: book.xml +# dblatex do not understand lang="se", use "nn" with workarounds in pdf.xsl + sed -e 's/-nb/-se/' -e 's/"nb"/"nn"/' < $^ >$@ -mekaniker-ordbok-sme.pdf: $(SOURCE_SME) - dblatex $(DBLATEX_OPTS) -o $@ book-sme.xml +mekaniker-ordbok-se.pdf: $(SOURCE_SE) + dblatex $(DBLATEX_OPTS) -o $@ book-se.xml -mekaniker-ordbok-sme.epub: $(SOURCE_SME) - dbtoepub -s epub.xsl book-sme.xml -o $@ +mekaniker-ordbok-se.epub: $(SOURCE_SE) + dbtoepub -s epub.xsl book-se.xml -o $@ -mekaniker-ordbok-sme.html: $(SOURCE_SME) - xmlto -m pdf.xsl html-nochunks book-sme.xml - mv book-sme.html $@ +mekaniker-ordbok-se.html: $(SOURCE_SE) + xmlto -m pdf.xsl html-nochunks book-se.xml + mv book-se.html $@