Signed-off-by: Maximiliano Sandoval <[email protected]>
---
Makefile | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/Makefile b/Makefile
index 16aab328..3ca56fd2 100644
--- a/Makefile
+++ b/Makefile
@@ -187,11 +187,11 @@ update_pot: submodule
$(call
xtrpotupdate,proxmox-yew-widget-toolkit,proxmox-yew-widget-toolkit/src/lib.rs)
for i in $(EXCLUDED_PWT_FILES); do mv -f
proxmox-yew-widget-toolkit/src/$$i.org proxmox-yew-widget-toolkit/src/$$i; done
+.PHONY: update-po-%
+update-po-%: update_pot messages.pot
+ msgmerge -s -v $*.po messages.pot >$*.po.tmp && mv $*.po.tmp $*.po
-do_update:
- $(MAKE) update_pot
- $(MAKE) messages.pot
- for i in $(LINGUAS); do echo -n "$$i: "; msgmerge -s -v $$i.po
messages.pot >$$i.po.tmp && mv $$i.po.tmp $$i.po; done;
+do_update: $(addprefix update-po-, $(LINGUAS))
update:
git submodule foreach 'git pull --ff-only origin master'
--
2.47.3