From: Aurelien Jarno <aurelien@aurel32.net>
To: qemu-devel@nongnu.org
Cc: Anthony Liguori <aliguori@us.ibm.com>,
Aurelien Jarno <aurelien@aurel32.net>
Subject: [Qemu-devel] [PATCH 2/5] po/Makefile: simplify
Date: Mon, 1 Apr 2013 19:12:03 +0200 [thread overview]
Message-ID: <1364836326-8707-3-git-send-email-aurelien@aurel32.net> (raw)
In-Reply-To: <1364836326-8707-1-git-send-email-aurelien@aurel32.net>
In the hope we get more translations, we should not have to modify
po/Makefile for each of them.
Cc: Anthony Liguori <aliguori@us.ibm.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
---
po/Makefile | 12 ++++--------
1 file changed, 4 insertions(+), 8 deletions(-)
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
--
1.7.10.4
next prev parent reply other threads:[~2013-04-01 17:12 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-01 17:12 [Qemu-devel] [PATCH 0/5] Translation improvements Aurelien Jarno
2013-04-01 17:12 ` [Qemu-devel] [PATCH 1/5] gtk: make more messages translatable Aurelien Jarno
2013-04-01 17:12 ` Aurelien Jarno [this message]
2013-04-01 17:12 ` [Qemu-devel] [PATCH 3/5] po/Makefile: correctly pass QEMU version Aurelien Jarno
2013-04-01 17:12 ` [Qemu-devel] [PATCH 4/5] po: update existing translation files Aurelien Jarno
2013-04-01 17:12 ` [Qemu-devel] [PATCH 5/5] po: add French translation Aurelien Jarno
2013-04-01 17:59 ` [Qemu-devel] [PATCH 0/5] Translation improvements Anthony Liguori
2013-04-02 20:21 ` Anthony Liguori
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1364836326-8707-3-git-send-email-aurelien@aurel32.net \
--to=aurelien@aurel32.net \
--cc=aliguori@us.ibm.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).