From 4eb774a1f053fed50bca1aa035afc6a870264ec8 Mon Sep 17 00:00:00 2001 From: Petter Reinholdtsen Date: Tue, 6 Feb 2018 09:16:35 +0100 Subject: [PATCH] Move po file update to separate build rule. --- Makefile | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 3345f00..8eeb2c9 100644 --- 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 -- 2.47.2