4
DOMAIN=ubuntu-release-upgrader
5
PO_FILES := $(wildcard *.po)
6
CONTACT=sebastian.heinlein@web.de
7
XGETTEXT_ARGS = --msgid-bugs-address=$(CONTACT)
8
XGETTEXT_ARGS += --keyword=unicode_gettext:2 --keyword=unicode_ngettext:2,3
14
XGETTEXT_ARGS="$(XGETTEXT_ARGS)" intltool-update -p -g $(DOMAIN)
16
# merge the new stuff into the po files
18
XGETTEXT_ARGS="$(XGETTEXT_ARGS)" intltool-update -r -g $(DOMAIN);
20
# create mo from the pos
22
mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/
23
msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo
26
update-po: $(DOMAIN).pot merge-po $(patsubst %.po,%.mo,$(wildcard *.po))