]> pere.pagekite.me Git - text-madewithcc.git/blobdiff - Makefile
Move po file update to separate build rule.
[text-madewithcc.git] / Makefile
index 3345f00824b530b6d733a522204445baea9e3ee2..8eeb2c9bcff8f4d2fbc44b8c8a5340707d7cfcc1 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -61,10 +61,10 @@ po/mwcc.pot: $(SOURCE).md
        echo '# Authors: Paul Stacey and Sarah Hinchliff Pearson' >> $@ && \
        tail --lines=+5 $$TEMP >> $@ && \
        rm $$TEMP
-       set -e; for LANG in po/*/mwcc.po; do \
-           echo -n $$LANG\  ; \
-           msgmerge $$LANG po/mwcc.pot -U ; \
-       done
+
+po/*/mwcc.po: po/mwcc.pot
+       msgmerge $@ po/mwcc.pot -U
+       touch $@
 
 $(SOURCE).es.md: $(SOURCE).md po/es/mwcc.po
        po4a-translate -f text -m $(SOURCE).md -p po/es/mwcc.po -l $@ -l $@ -L utf8 -M utf8 -k 0