]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Reuse fixup-docbook-translated.rb for nb translation.
[text-madewithcc.git] / Makefile
index c337a153fa89fa4ec2ed83f7e95bb2414de2a118..1ea85c6f56803fc33d615f05583ce2c7a2e45e0c 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -88,7 +88,10 @@ $(SOURCE).es.xml: $(SOURCE).xml po/es/mwcc.po fixup-docbook-translated.rb
          rm -f $$TEMP
 
 $(SOURCE).nb.xml: $(SOURCE).xml po/nb/mwcc.po
-       po4a-translate -f docbook -m $(SOURCE).xml -p po/nb/mwcc.po -l $@ -l $@ -L utf-8 -M utf-8 $(PO4AOPTS) -k 0
+       TEMP=`tempfile -p mwcc` && \
+         po4a-translate -f docbook -m $(SOURCE).xml -p po/nb/mwcc.po -l $$TEMP -l $$TEMP -L utf-8 -M utf-8 $(PO4AOPTS) -k 0 && \
+         ruby fixup-docbook-translated.rb nb $$TEMP $@ && \
+         rm -f $$TEMP
 
 $(SOURCE).nl.xml: $(SOURCE).xml po/nl/mwcc.po
        po4a-translate -f docbook -m $(SOURCE).xml -p po/nl/mwcc.po -l $@ -l $@ -L utf-8 -M utf-8 $(PO4AOPTS) -k 0