Received: from eggs.gnu.org ([2001:4830:134:3::10]:47206) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXWkw-0004QP-6f for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:44:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XXWkn-0003Q3-6j for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:44:22 -0400 Received: from mail-wi0-x236.google.com ([2a00:1450:400c:c05::236]:52867) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XXWkm-0003PZ-VA for qemu-devel@nongnu.org; Fri, 26 Sep 2014 10:44:13 -0400 Received: by mail-wi0-f182.google.com with SMTP id d1so11744612wiv.15 for ; Fri, 26 Sep 2014 07:44:07 -0700 (PDT) Received: from yakj.usersys.redhat.com (nat-pool-mxp-t.redhat.com. [209.132.186.18]) by mx.google.com with ESMTPSA id t2sm1895454wiz.20.2014.09.26.07.38.37 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 26 Sep 2014 07:38:38 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Fri, 26 Sep 2014 16:38:09 +0200 Message-Id: <1411742290-2940-11-git-send-email-pbonzini@redhat.com> In-Reply-To: <1411742290-2940-1-git-send-email-pbonzini@redhat.com> References: <1411742290-2940-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 10/11] po: fix conflict with %.mo rule in rules.mak List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org po/Makefile includes rules.mak to use the nice quiet-command macro. However, this also brings in a %.mo rule that breaks "make build". Put our own rule before the include, so that it has precedence. Reported-by: Christian Borntraeger Signed-off-by: Paolo Bonzini --- po/Makefile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/po/Makefile b/po/Makefile index 1ab241a..b271f79 100644 --- a/po/Makefile +++ b/po/Makefile @@ -9,6 +9,9 @@ all: .PHONY: all build clean install update +%.mo: %.po + $(call quiet-command, msgfmt -o $@ $<, " GEN $@") + -include ../config-host.mak include $(SRC_PATH)/rules.mak @@ -38,9 +41,6 @@ install: $(OBJS) $(INSTALL) -m644 $$obj $(DESTDIR)$(prefix)/share/locale/$$base/LC_MESSAGES/qemu.mo; \ done -%.mo: %.po - $(call quiet-command, msgfmt -o $@ $<, " GEN $@") - $(PO_PATH)/messages.po: $(SRC_PATH)/ui/gtk.c $(call quiet-command, ( cd $(SRC_PATH) && \ xgettext -o - --from-code=UTF-8 --foreign-user \ -- 2.1.0