From patchwork Wed Oct 16 03:26:46 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fam Zheng X-Patchwork-Id: 283837 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CB69A2C00BE for ; Wed, 16 Oct 2013 14:31:42 +1100 (EST) Received: from localhost ([::1]:45214 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWHpk-0007Gi-O5 for incoming@patchwork.ozlabs.org; Tue, 15 Oct 2013 23:31:40 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55882) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWHmD-0001UM-UC for qemu-devel@nongnu.org; Tue, 15 Oct 2013 23:28:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VWHm7-0008Ox-U2 for qemu-devel@nongnu.org; Tue, 15 Oct 2013 23:28:01 -0400 Received: from mx1.redhat.com ([209.132.183.28]:20018) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VWHm7-0008Ot-MV for qemu-devel@nongnu.org; Tue, 15 Oct 2013 23:27:55 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id r9G3Rj7w006401 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 15 Oct 2013 23:27:45 -0400 Received: from T430s.nay.redhat.com (vpn1-5-39.sin2.redhat.com [10.67.5.39]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id r9G3QoDD031222; Tue, 15 Oct 2013 23:27:39 -0400 From: Fam Zheng To: qemu-devel@nongnu.org Date: Wed, 16 Oct 2013 11:26:46 +0800 Message-Id: <1381894008-29164-7-git-send-email-famz@redhat.com> In-Reply-To: <1381894008-29164-1-git-send-email-famz@redhat.com> References: <1381894008-29164-1-git-send-email-famz@redhat.com> X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: kwolf@redhat.com, peter.maydell@linaro.org, stefanha@redhat.com, mjt@tls.msk.ru, xiawenc@linux.vnet.ibm.com, alex@alex.org.uk, pbonzini@redhat.com, vilanova@ac.upc.edu, rth@twiddle.net Subject: [Qemu-devel] [PATCH v14 6/8] Makefile: install modules with "make install" 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 Install all the modules to ${MODDIR}. Signed-off-by: Fam Zheng --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index f940080..3d7cf5a 100644 --- a/Makefile +++ b/Makefile @@ -364,6 +364,12 @@ install-datadir install-localstatedir ifneq ($(TOOLS),) $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" endif +ifneq ($(CONFIG_MODULES),) + $(INSTALL_DIR) "$(DESTDIR)$(moddir)" + for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \ + $(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(moddir)/$${s//\//-}"; \ + done +endif ifneq ($(HELPERS-y),) $(INSTALL_DIR) "$(DESTDIR)$(libexecdir)" $(INSTALL_PROG) $(STRIP_OPT) $(HELPERS-y) "$(DESTDIR)$(libexecdir)"