gajim-plural/po/Makefile

35 lines
929 B
Makefile
Raw Normal View History

NAME = gajim
LANGS := fr pt el pl es ru bg de nb cs nl pt_BR sv it eu sk no zh_CN br eo
2006-05-10 21:20:16 +02:00
LANGS_PO:=$(foreach LANG, ${LANGS}, ${LANG}.po)
LANGS_MO:=$(foreach LANG, ${LANGS}, ${LANG}.mo)
DATADIR:=$(subst //,/,${DESTDIR}/${PREFIX}/share)
GLADESRC=$(wildcard ../data/glade/*.glade)
PYSRC=$(wildcard ../src/*py ../src/common/*py)
POTSRC:=../gajim.desktop.in $(foreach FILE, ${GLADESRC}, ${FILE}.h) $(PYSRC)
2005-04-25 09:56:44 +02:00
2006-05-10 21:20:16 +02:00
all: $(LANGS_MO)
2005-04-25 09:56:44 +02:00
%.mo: %.po
msgfmt $< -o $@
%.glade.h: %.glade
intltool-extract --type=gettext/glade $<
POTFILES.in: $(POTSRC)
echo -e "# generated by make POTFILES.in\n[encoding: UTF-8]" $(subst ../,\\n,$^) "\n" >POTFILES.in
gajim.pot: POTFILES.in
2005-08-08 10:09:57 +02:00
intltool-update --pot --gettext-package=$(NAME)
2006-05-10 21:20:16 +02:00
install:
for l in ${LANGS}; do\
dir=${DATADIR}/locale/$${l}/LC_MESSAGES;\
if test ! -d $${dir}; then\
install -m 755 -d $${dir};\
fi;\
2006-06-15 09:04:08 +02:00
install -m 644 $${l}.mo $${dir}/${NAME}.mo;\
2006-05-10 21:20:16 +02:00
done
2005-04-25 09:56:44 +02:00
clean:
2006-05-13 20:43:48 +02:00
rm -f *.mo