cleanup .po->.mo makefile

This commit is contained in:
Vincent Hanquez 2005-04-25 07:56:44 +00:00
parent a2b6a44079
commit f7cffc446a
2 changed files with 12 additions and 4 deletions

View File

@ -1,6 +1,6 @@
VERSION ?= 0.6.1
MODULES = src src/common
MODULES = src src/common po
PREFIX = /usr
DESTDIR = /
@ -19,9 +19,7 @@ SCRIPTS = \
all: translation trayicon idle pyo
translation:
for l in $(LANGS) ; do \
msgfmt po/$$l/LC_MESSAGES/gajim.po -o po/$$l/LC_MESSAGES/gajim.mo; \
done
make -C po all
trayicon:
make -C src all;

10
po/Makefile Normal file
View File

@ -0,0 +1,10 @@
LANGS := fr pt_BR
LANGDIR := $(foreach lang, $(LANGS), $(subst ,/LC_MESSAGES/gajim.mo, $(lang)))
all: $(LANGDIR)
%.mo: %.po
msgfmt $< -o $@
clean:
find -name '*.mo' -exec rm {} \;