From 5e1454ef4562bdcc75c213624a14e83c7959b592 Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Sun, 7 Apr 2024 18:46:29 +0200 Subject: Adding upstream version 3.73. Signed-off-by: Daniel Baumann --- po/Makefile | 33 +++++++++++++++++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 po/Makefile (limited to 'po/Makefile') diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 0000000..a163cd7 --- /dev/null +++ b/po/Makefile @@ -0,0 +1,33 @@ +XGETTEXT = xgettext --keyword=_ --keyword=N_ --add-comments=TRANS: +POTFILE = tasksel.pot +MOS:=$(addsuffix .mo, $(LANGS)) + +all: $(POTFILE) $(MOS) + touch build_stamp + +$(POTFILE): ../tasksel.pl + $(XGETTEXT) -o $(POTFILE)-update ../tasksel.pl + if test -f $(POTFILE); then \ + if diff -I '^"POT-Creation-Date:' -I '^Report-Msgid-Bugs-To:' $(POTFILE) $(POTFILE)-update >/dev/null 2>&1; then \ + rm -f $(POTFILE)-update; \ + else \ + rm -f $(POTFILE); \ + mv $(POTFILE)-update $(POTFILE); \ + fi; \ + else \ + mv $(POTFILE)-update $(POTFILE); \ + fi + +%.mo: %.po + msgfmt -o $@ $< + +clean: + -rm -f build_stamp + -rm -f *.mo + +update: $(addprefix update-, $(LANGS)) + +update-%: %.po $(POTFILE) + mv $< $<.bak + msgmerge $<.bak $(POTFILE) > $< + -- cgit v1.2.3