From f7cffc446ab926504cf7ba5e18c6a097fd0371f0 Mon Sep 17 00:00:00 2001 From: Vincent Hanquez Date: Mon, 25 Apr 2005 07:56:44 +0000 Subject: [PATCH] cleanup .po->.mo makefile --- Makefile | 6 ++---- po/Makefile | 10 ++++++++++ 2 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 po/Makefile diff --git a/Makefile b/Makefile index 8c62cb6ef..7508bdf1b 100644 --- a/Makefile +++ b/Makefile @@ -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; diff --git a/po/Makefile b/po/Makefile new file mode 100644 index 000000000..cdbdf4b75 --- /dev/null +++ b/po/Makefile @@ -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 {} \;