X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/851c96af4bed6b5334d64ddce9f20b96906c71cc..6e610c9a1a53ed9fbf2f1c0ac3e51f812f23fc5f:/Makefile diff --git a/Makefile b/Makefile index 3a2492f..e4122cf 100644 --- a/Makefile +++ b/Makefile @@ -141,6 +141,12 @@ $(SOURCE).uk.xml: $(SOURCE).xml po/uk/mwcc.po ruby fixup-docbook-translated.rb uk $$TEMP $@ && \ rm -f $$TEMP +$(SOURCE).zh_Hans.xml: $(SOURCE).xml po/zh_Hans/mwcc.po + TEMP=`tempfile -p mwcc` && \ + po4a-translate -f docbook -m $(SOURCE).xml -p po/zh_Hans/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \ + ruby fixup-docbook-translated.rb zh_Hans $$TEMP $@ && \ + rm -f $$TEMP + $(SOURCE).xml: $(SOURCE).md fixup-docbook.rb TEMP=`tempfile -p mwcc` && \ pandoc -s -o $$TEMP $(PANDOC_OPTS) $(SOURCE).md && \ @@ -167,10 +173,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 \