1 include $(top_srcdir)/po/Makevars
7 POFILES=po/en_GB.po po/nl.po po/pt_BR.po
9 POTFILE=po/$(DOMAIN).pot
11 TRANSLATABLE_FILES = $(DIST_SOURCES) $(all_q_sources)
13 $(POTFILE): $(TRANSLATABLE_FILES)
15 $(XGETTEXT) --directory=$(top_srcdir) $(TRANSLATABLE_FILES) \
17 --copyright-holder="$(COPYRIGHT_HOLDER)" \
18 --package-name=$(PACKAGE) \
19 --package-version=$(VERSION) \
20 --msgid-bugs-address=$(MSGID_BUGS_ADDRESS) \
21 --add-comments='TRANSLATORS:' \
25 $(POFILES): $(POTFILE)
26 $(MSGMERGE) $(top_srcdir)/$* $< -o $@
29 @$(MKDIR_P) `dirname $@`
33 GMOFILES = $(POFILES:.po=.gmo)
35 ALL_LOCAL += $(GMOFILES)
37 install-data-hook: $(GMOFILES)
38 for f in $(GMOFILES); do \
39 lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
40 $(INSTALL) -D $$f $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
45 for f in $(GMOFILES); do \
46 lang=`echo $$f | sed -e 's%po/\(.*\)\.gmo%\1%' ` ; \
47 $(RM) $(DESTDIR)$(prefix)/share/locale/$$lang/LC_MESSAGES/$(DOMAIN).mo ; \
51 EXTRA_DIST += $(POFILES) $(POTFILE)
53 CLEANFILES += $(POFILES) $(GMOFILES) $(POTFILE)