comparison Makefile @ 19991:ce5d711475a3

Makefile: do update on a temporary copy of a po file This avoids having a half completed file (with a new timestamp) when msgmerge has failed.
author Simon Heimberg <simohe@besonet.ch>
date Tue, 05 Nov 2013 09:43:36 +0100
parents 80983af366b5
children 23edc6673f0d
comparison
equal deleted inserted replaced
19989:c38c3fdc8b93 19991:ce5d711475a3
121 --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \ 121 --from-code ISO-8859-1 --join --sort-by-file --add-comments=i18n: \
122 -d hg -p i18n -o hg.pot 122 -d hg -p i18n -o hg.pot
123 $(PYTHON) i18n/posplit i18n/hg.pot 123 $(PYTHON) i18n/posplit i18n/hg.pot
124 124
125 %.po: i18n/hg.pot 125 %.po: i18n/hg.pot
126 msgmerge --no-location --update $@ $^ 126 # work on a temporary copy for never having a half completed target
127 cp $@ $@.tmp
128 msgmerge --no-location --update $@.tmp $^
129 mv -f $@~ $@
127 130
128 .PHONY: help all local build doc clean install install-bin install-doc \ 131 .PHONY: help all local build doc clean install install-bin install-doc \
129 install-home install-home-bin install-home-doc dist dist-notests tests \ 132 install-home install-home-bin install-home-doc dist dist-notests tests \
130 update-pot 133 update-pot