cleanup .po->.mo makefile
This commit is contained in:
parent
a2b6a44079
commit
f7cffc446a
6
Makefile
6
Makefile
|
@ -1,6 +1,6 @@
|
||||||
VERSION ?= 0.6.1
|
VERSION ?= 0.6.1
|
||||||
|
|
||||||
MODULES = src src/common
|
MODULES = src src/common po
|
||||||
PREFIX = /usr
|
PREFIX = /usr
|
||||||
DESTDIR = /
|
DESTDIR = /
|
||||||
|
|
||||||
|
@ -19,9 +19,7 @@ SCRIPTS = \
|
||||||
all: translation trayicon idle pyo
|
all: translation trayicon idle pyo
|
||||||
|
|
||||||
translation:
|
translation:
|
||||||
for l in $(LANGS) ; do \
|
make -C po all
|
||||||
msgfmt po/$$l/LC_MESSAGES/gajim.po -o po/$$l/LC_MESSAGES/gajim.mo; \
|
|
||||||
done
|
|
||||||
|
|
||||||
trayicon:
|
trayicon:
|
||||||
make -C src all;
|
make -C src all;
|
||||||
|
|
|
@ -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 {} \;
|
Loading…
Reference in New Issue