From patchwork Mon Apr 1 17:12:03 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Aurelien Jarno X-Patchwork-Id: 232782 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id EAF2C2C0120 for ; Tue, 2 Apr 2013 04:14:00 +1100 (EST) Received: from localhost ([::1]:37673 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMiIx-0007FM-3O for incoming@patchwork.ozlabs.org; Mon, 01 Apr 2013 13:13:59 -0400 Received: from eggs.gnu.org ([208.118.235.92]:48614) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMiHL-0004lS-8i for qemu-devel@nongnu.org; Mon, 01 Apr 2013 13:12:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UMiHE-00031N-OX for qemu-devel@nongnu.org; Mon, 01 Apr 2013 13:12:19 -0400 Received: from hall.aurel32.net ([2001:470:1f15:c4f::1]:53156) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UMiHE-000318-He for qemu-devel@nongnu.org; Mon, 01 Apr 2013 13:12:12 -0400 Received: from [2001:470:d4ed:0:ea11:32ff:fea1:831a] (helo=ohm.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1UMiHB-00050x-BW; Mon, 01 Apr 2013 19:12:09 +0200 Received: from aurel32 by ohm.aurel32.net with local (Exim 4.80) (envelope-from ) id 1UMiH9-0002Iz-QR; Mon, 01 Apr 2013 19:12:07 +0200 From: Aurelien Jarno To: qemu-devel@nongnu.org Date: Mon, 1 Apr 2013 19:12:03 +0200 Message-Id: <1364836326-8707-3-git-send-email-aurelien@aurel32.net> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1364836326-8707-1-git-send-email-aurelien@aurel32.net> References: <1364836326-8707-1-git-send-email-aurelien@aurel32.net> X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:470:1f15:c4f::1 Cc: Anthony Liguori , Aurelien Jarno Subject: [Qemu-devel] [PATCH 2/5] po/Makefile: simplify X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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 --- 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