]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Translated using Weblate (Norwegian Bokmål)
[text-madewithcc.git] / Makefile
index f3e5ee1962a70b486b85e9a91b805881bb45364f..e68e50e87108a19c2b25ca2684ba3430b62b1237 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -75,6 +75,12 @@ po/*/mwcc.po: po/mwcc.pot
        msgmerge --previous $@ po/mwcc.pot -U
        touch $@
 
+$(SOURCE).az.xml: $(SOURCE).xml po/az/mwcc.po
+       TEMP=`tempfile -p mwcc` && \
+         po4a-translate -f docbook -m $(SOURCE).xml -p po/az/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
+         ruby fixup-docbook-translated.rb az $$TEMP $@ && \
+         rm -f $$TEMP
+
 $(SOURCE).de.xml: $(SOURCE).xml po/de/mwcc.po
        TEMP=`tempfile -p mwcc` && \
          po4a-translate -f docbook -m $(SOURCE).xml -p po/de/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
@@ -123,6 +129,12 @@ $(SOURCE).sv.xml: $(SOURCE).xml po/sv/mwcc.po
          ruby fixup-docbook-translated.rb sv $$TEMP $@ && \
          rm -f $$TEMP
 
+$(SOURCE).th.xml: $(SOURCE).xml po/th/mwcc.po
+       TEMP=`tempfile -p mwcc` && \
+         po4a-translate -f docbook -m $(SOURCE).xml -p po/th/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
+         ruby fixup-docbook-translated.rb th $$TEMP $@ && \
+         rm -f $$TEMP
+
 $(SOURCE).uk.xml: $(SOURCE).xml po/uk/mwcc.po
        TEMP=`tempfile -p mwcc` && \
          po4a-translate -f docbook -m $(SOURCE).xml -p po/uk/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
@@ -155,10 +167,10 @@ DBLATEX_OPTS = -T simple -t pdf -b xetex
 epub: $(SOURCE).epub
        for LANG in $(LANGS); do \
            $(MAKE) $(SOURCE).$$LANG.epub ; \
-           flightcrew-cli $(SOURCE).$$LANG.epub || exit 1 ; \
        done
 %.epub: %.xml
        dbtoepub $^
+       flightcrew-cli $@ || exit 1
 
 html: $(SOURCE).html
        for LANG in $(LANGS); do \
@@ -166,7 +178,7 @@ html: $(SOURCE).html
        done
 
 %.html: %.xml
-       xmlto -m extra/pdf.xsl html-nochunks $^
+       xmlto -x extra/docbook-utf8.xsl -m extra/pdf.xsl html-nochunks $^
 
 # Useful for spell checking the text
 %.txt: %.xml