qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 2/5] po/Makefile: simplify


From: Aurelien Jarno
Subject: [Qemu-devel] [PATCH 2/5] po/Makefile: simplify
Date: Mon, 1 Apr 2013 19:12:03 +0200

In the hope we get more translations, we should not have to modify
po/Makefile for each of them.

Cc: Anthony Liguori <address@hidden>
Signed-off-by: Aurelien Jarno <address@hidden>
---
 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 address@hidden -k_ -C $<
 
-de_DE.po: messages.po $(SRC_PATH)/ui/gtk.c
+%.po: messages.po
        @msgmerge $@ $< > address@hidden && mv address@hidden $@
 
-it.po: messages.po $(SRC_PATH)/ui/gtk.c
-       @msgmerge $@ $< > address@hidden && mv address@hidden $@
-
-.PHONY: $(SRCS) clean all
+.PHONY: clean all
-- 
1.7.10.4




reply via email to

[Prev in Thread] Current Thread [Next in Thread]