X-Git-Url: https://git.saurik.com/apt.git/blobdiff_plain/a7cf4273ca0d5e47622bf278b547a4e984afbf4b..f51bea20be1af7cf8502845e9b6030c1227be92e:/po/makefile diff --git a/po/makefile b/po/makefile index 0916f2373..45e5b1e5a 100644 --- a/po/makefile +++ b/po/makefile @@ -64,8 +64,17 @@ stats: binary: $(POTFILES) $(PACKAGE)-all.pot $(MOFILES) +.PHONY: update-po +update-po: $(PACKAGE)-all.pot + for lang in ${LINGUAS}; do \ + echo "Updating $$lang.po"; \ + $(MSGMERGE) $$lang.po $(PACKAGE)-all.pot -o $$lang.new.po; \ + cmp $$lang.new.po $$lang.po || cp $$lang.new.po $$lang.po; \ + rm -f $$lang.new.po; \ + done + clean: clean/local -clean/local: +clean/local: update-po rm -f $(MOFILES) $(LANG_POFILES) $(PO)/*.d # Include the dependencies that are available