2
GETTEXT_PACKAGE=$(DOMAIN)
3
PO_FILES := $(wildcard *.po)
4
CONTACT=martin.pitt@ubuntu.com
15
# we need fake .py files, since current intltool-update
16
# currently does not understand a thing like [type: python]
17
ln -s apport-gtk $(top_srcdir)/gtk/apport-gtk.py
18
ln -s apport-qt $(top_srcdir)/qt4/apport-qt.py
19
ln -s apport-cli $(top_srcdir)/cli/apport-cli.py
20
XGETTEXT_ARGS='--msgid-bugs-address=$(CONTACT)' intltool-update -p --verbose
21
rm $(top_srcdir)/gtk/apport-gtk.py $(top_srcdir)/qt4/apport-qt.py $(top_srcdir)/cli/apport-cli.py
23
# merge the new stuff into the po files
24
merge-po: $(PO_FILES) $(DOMAIN.pot)
25
# we need fake .py files, since current intltool-update
26
# currently does not understand a thing like [type: python]
27
ln -s apport-gtk $(top_srcdir)/gtk/apport-gtk.py
28
ln -s apport-qt $(top_srcdir)/qt4/apport-qt.py
29
ln -s apport-cli $(top_srcdir)/cli/apport-cli.py
30
XGETTEXT_ARGS='--msgid-bugs-address=$(CONTACT)' intltool-update -r
31
rm $(top_srcdir)/gtk/apport-gtk.py $(top_srcdir)/qt4/apport-qt.py $(top_srcdir)/cli/apport-cli.py
33
# create mo from the pos
35
mkdir -p mo/$(subst .po,,$<)/LC_MESSAGES/
36
msgfmt $< -o mo/$(subst .po,,$<)/LC_MESSAGES/$(DOMAIN).mo
38
# generate all *.mo files
39
build-mo: $(patsubst %.po,%.mo,$(wildcard *.po))