X-Git-Url: https://pere.pagekite.me/gitweb/text-madewithcc.git/blobdiff_plain/851c96af4bed6b5334d64ddce9f20b96906c71cc..c29cec255fb6484b4e06de7ff55e005ded99fae9:/Makefile diff --git a/Makefile b/Makefile index 3a2492f..15af80e 100644 --- a/Makefile +++ b/Makefile @@ -81,6 +81,12 @@ $(SOURCE).az.xml: $(SOURCE).xml po/az/mwcc.po ruby fixup-docbook-translated.rb az $$TEMP $@ && \ rm -f $$TEMP +$(SOURCE).bn.xml: $(SOURCE).xml po/bn/mwcc.po + TEMP=`tempfile -p mwcc` && \ + po4a-translate -f docbook -m $(SOURCE).xml -p po/bn/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \ + ruby fixup-docbook-translated.rb bn $$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).pl.xml: $(SOURCE).xml po/pl/mwcc.po ruby fixup-docbook-translated.rb pl $$TEMP $@ && \ rm -f $$TEMP +$(SOURCE).pt_BR.xml: $(SOURCE).xml po/pt_BR/mwcc.po + TEMP=`tempfile -p mwcc` && \ + po4a-translate -f docbook -m $(SOURCE).xml -p po/pt_BR/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \ + ruby fixup-docbook-translated.rb pt_BR $$TEMP $@ && \ + rm -f $$TEMP + $(SOURCE).sv.xml: $(SOURCE).xml po/sv/mwcc.po TEMP=`tempfile -p mwcc` && \ po4a-translate -f docbook -m $(SOURCE).xml -p po/sv/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \ @@ -141,6 +153,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 +185,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 \ @@ -191,6 +209,8 @@ lint-es: $(SOURCE).es.xml xmllint $(XMLLINTOPTS) $^ lint-nb: $(SOURCE).nb.xml xmllint $(XMLLINTOPTS) $^ +lint-pt_BR: $(SOURCE).pt_BR.xml + xmllint $(XMLLINTOPTS) $^ check-urls: retval=0; for u in $$(perl -n -e'// && print "$$1\n"' MadewithCreativeCommonsmostup-to-dateversion.xml | sort -u); do \