From: Aurelien Jarno Date: Mon, 1 Apr 2013 17:12:03 +0000 (+0200) Subject: po/Makefile: simplify X-Git-Tag: TizenStudio_2.0_p2.3.2~208^2~2202 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f84756554e32d97db3aa949db1dd58c7eea62375;p=sdk%2Femulator%2Fqemu.git po/Makefile: simplify In the hope we get more translations, we should not have to modify po/Makefile for each of them. Cc: Anthony Liguori Signed-off-by: Aurelien Jarno Reviewed-by: Anthony Liguori Message-id: 1364836326-8707-3-git-send-email-aurelien@aurel32.net Signed-off-by: Anthony Liguori --- diff --git a/po/Makefile b/po/Makefile index 2b4420f..2c0193e 100644 --- a/po/Makefile +++ b/po/Makefile @@ -2,9 +2,8 @@ # process and also within the source tree to update the translation files. VERSION=$(shell cat ../VERSION) -TRANSLATIONS=de_DE it -SRCS=$(addsuffix .po, $(TRANSLATIONS)) -OBJS=$(addsuffix .mo, $(TRANSLATIONS)) +SRCS=$(filter-out messages.po,$(wildcard *.po)) +OBJS=$(patsubst %.po,%.mo,$(SRCS)) SRC_PATH=.. @@ -37,10 +36,7 @@ install: $(OBJS) messages.po: $(SRC_PATH)/ui/gtk.c @xgettext -o $@ --foreign-user --package-name=QEMU --package-version=1.0.50 --msgid-bugs-address=qemu-devel@nongnu.org -k_ -C $< -de_DE.po: messages.po $(SRC_PATH)/ui/gtk.c +%.po: messages.po @msgmerge $@ $< > $@.bak && mv $@.bak $@ -it.po: messages.po $(SRC_PATH)/ui/gtk.c - @msgmerge $@ $< > $@.bak && mv $@.bak $@ - -.PHONY: $(SRCS) clean all +.PHONY: clean all