3 GETTEXT_PACKAGE = hermes
8 prefix = /opt/$(PACKAGE)
10 itlocaledir = $(prefix)/$(DATADIRNAME)/locale
12 INSTALL = /scratchbox/tools/bin/install -c
13 INSTALL_DATA = ${INSTALL} -m 644
15 GMSGFMT = /scratchbox/tools/bin/msgfmt
16 MSGFMT = /scratchbox/tools/bin/msgfmt
17 XGETTEXT = /scratchbox/tools/bin/xgettext
18 MSGMERGE = /scratchbox/tools/bin/msgmerge
20 PO_LINGUAS= fi_FI fr_FR pl_PL sv_SE
22 USE_LINGUAS= fi_FI fr_FR pl_PL sv_SE
24 POFILES=$(shell LINGUAS="$(PO_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.po "; done)
26 DISTFILES = Makefile POTFILES.in $(POFILES)
27 EXTRA_DISTFILES = ChangeLog POTFILES.skip Makevars LINGUAS
30 ../src/org/maemo/hermes/engine/twitter/provider.py \
31 ../src/org/maemo/hermes/engine/linkedin/provider.py \
32 ../src/org/maemo/hermes/engine/facebook/provider.py \
33 ../src/org/maemo/hermes/gui/gtkui.py \
34 ../src/org/maemo/hermes/gui/accountsdialogue.py \
35 ../src/org/bleb/wimpworks.py \
36 # This comment gets stripped out
38 CATALOGS=$(shell LINGUAS="$(USE_LINGUAS)"; for lang in $$LINGUAS; do printf "$$lang.gmo "; done)
41 .SUFFIXES: .po .gmo .mo
47 file=`echo $* | sed 's,.*/,,'`.gmo \
48 && rm -f $$file && $(GMSGFMT) -o $$file $<
54 $(GETTEXT_PACKAGE).pot: $(POTFILES)
55 $(XGETTEXT) --package-name=$(PACKAGE) -o $(GETTEXT_PACKAGE).pot $(POTFILES)
58 linguas="$(USE_LINGUAS)"; \
59 for lang in $$linguas; do \
60 dir=$(DESTDIR)$(itlocaledir)/$$lang/LC_MESSAGES; \
62 if test -r $$lang.gmo; then \
63 $(INSTALL_DATA) $$lang.gmo $$dir/$(GETTEXT_PACKAGE).mo; \
64 echo "installing $$lang.gmo as $$dir/$(GETTEXT_PACKAGE).mo"; \
72 $(MAKE) $(GETTEXT_PACKAGE).pot
73 linguas="$(USE_LINGUAS)"; \
74 for lang in $$linguas; do \
76 if test -r $$lang.po; then \
77 $(MSGMERGE) -U $$lang.po $(GETTEXT_PACKAGE).pot; \
79 cp $(GETTEXT_PACKAGE).pot $$lang.po; \