2005-08-03 01:42:37 +02:00
|
|
|
NAME = gajim
|
2006-06-13 11:59:26 +02:00
|
|
|
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)
|
2006-10-08 10:23:33 +02:00
|
|
|
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 $@
|
|
|
|
|
2006-09-04 12:03:24 +02:00
|
|
|
%.glade.h: %.glade
|
|
|
|
intltool-extract --type=gettext/glade $<
|
|
|
|
|
2006-10-08 10:23:33 +02:00
|
|
|
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)
|
2005-08-03 01:42:37 +02:00
|
|
|
|
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
|