38 lines
853 B
Makefile
38 lines
853 B
Makefile
# -*- Makefile -*-
|
|
POFILES = po/fr.po
|
|
GMOFILES=$(POFILES:.po=.gmo)
|
|
|
|
dist_noinst_DATA += po/fr.po \
|
|
po/bongo.pot \
|
|
po/POTFILES.in
|
|
|
|
po/all: update-gmo
|
|
|
|
po/clean: clean
|
|
rm -f po/*.gmo
|
|
|
|
po/install: po/all
|
|
for file in $(GMOFILES); do \
|
|
lang=`echo $$file | sed -e 's,.*/,,' | sed -e 's/.gmo//'`; \
|
|
$(MKINSTALLDIRS) $(DESTDIR)/$(localedir)/$$lang/LC_MESSAGES/; \
|
|
$(INSTALL) -m 0644 $$file $(DESTDIR)/$(localedir)/$$lang/LC_MESSAGES/bongo.gmo; \
|
|
done
|
|
|
|
bongo.pot:
|
|
$(XGETTEXT) --directory=$(srcdir) \
|
|
--add-comments=translators \
|
|
--keyword=_ --keyword=N_ --keyword=M_ \
|
|
--files-from=$(srcdir)/po/POTFILES.in \
|
|
--msgid-bugs-address="bongo-devel@gna.org" \
|
|
-o po/bongo.pot
|
|
|
|
update-gmo: ${GMOFILES}
|
|
|
|
update-po: ${POFILES}-update update-gmo
|
|
|
|
%.gmo:
|
|
rm -f $@ && $(GMSGFMT) -o $@ $*.po
|
|
|
|
%.po-update: bongo.pot
|
|
$(MSGMERGE) $*.po po/bongo.pot -o $*.po
|