From fd1b73dba4e0a91b6070db78d2db3133eaabffa6 Mon Sep 17 00:00:00 2001 From: Romain Vigier Date: Sat, 8 Feb 2020 23:18:58 +0100 Subject: [PATCH] Add target for updating po --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index ac5c501..e735655 100644 --- a/Makefile +++ b/Makefile @@ -60,3 +60,9 @@ pot: sed -i "1,4s/THE PACKAGE'S COPYRIGHT HOLDER/$(AUTHOR_NAME)/" ./src/po/$(UUID).pot sed -i "1,4s/FIRST AUTHOR/$(AUTHOR_NAME)/" ./src/po/$(UUID).pot sed -i "1,4s/EMAIL@ADDRESS/$(AUTHOR_EMAIL)/" ./src/po/$(UUID).pot + +.PHONY: update-po +update-po: + for po_file in $(wildcard ./src/po/*.po); do \ + msgmerge --update --no-fuzzy-matching --backup=none $$po_file src/po/$(UUID).pot; \ + done