summaryrefslogtreecommitdiff
path: root/trunk/po/Makefile
diff options
context:
space:
mode:
authorLars Wirzenius <liw@liw.fi>2019-03-25 09:21:12 +0200
committerLars Wirzenius <liw@liw.fi>2019-03-25 09:21:12 +0200
commitf35245d746080f4e8ba020eff66375e1a938ce52 (patch)
tree736bc347655cdf84fb2608e7cdfbfa7d5bdbf0c9 /trunk/po/Makefile
downloaddimbola-f35245d746080f4e8ba020eff66375e1a938ce52.tar.gz
Add: initial commitHEADmaster
Diffstat (limited to 'trunk/po/Makefile')
-rw-r--r--trunk/po/Makefile27
1 files changed, 27 insertions, 0 deletions
diff --git a/trunk/po/Makefile b/trunk/po/Makefile
new file mode 100644
index 0000000..d0bec53
--- /dev/null
+++ b/trunk/po/Makefile
@@ -0,0 +1,27 @@
+# customized from update-manager package's po/Makefile
+# License GPL, original author Michael Vogt
+
+top_srcdir=`pwd`/..
+
+DOMAIN=dimbola
+PO_FILES := $(wildcard *.po)
+CONTACT=timo.jyrinki@iki.fi
+
+all: update-po
+
+# update the pot
+$(DOMAIN).pot:
+ XGETTEXT_ARGS=--msgid-bugs-address=$(CONTACT) intltool-update -p -g $(DOMAIN)
+
+# merge the new stuff into the po files
+merge-po: $(PO_FILES)
+ XGETTEXT_ARGS=--msgid-bugs-address=$(CONTACT) intltool-update -r -g $(DOMAIN);
+
+# create mo from the pos
+%.mo : %.po
+ mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/
+ msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo
+
+# dummy target
+update-po: $(DOMAIN).pot merge-po $(patsubst %.po,%.mo,$(wildcard *.po))
+