summaryrefslogtreecommitdiffstats
path: root/po/Makefile
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:08:26 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 16:08:26 +0000
commit59845ba9b3df5df775cf8c5a65d30375b984e3c7 (patch)
tree6c5c6d57676acf601505f35e53194e5e7a86f0c3 /po/Makefile
parentInitial commit. (diff)
downloadtasksel-59845ba9b3df5df775cf8c5a65d30375b984e3c7.tar.xz
tasksel-59845ba9b3df5df775cf8c5a65d30375b984e3c7.zip
Adding upstream version 3.68+deb11u1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r--po/Makefile33
1 files changed, 33 insertions, 0 deletions
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) > $<
+