From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48616) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGSl0-0001LB-DO for qemu-devel@nongnu.org; Thu, 20 Feb 2014 07:29:46 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WGSkr-00033K-QN for qemu-devel@nongnu.org; Thu, 20 Feb 2014 07:29:38 -0500 Received: from mail-ee0-x22b.google.com ([2a00:1450:4013:c00::22b]:34637) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WGSkr-00032p-Jr for qemu-devel@nongnu.org; Thu, 20 Feb 2014 07:29:29 -0500 Received: by mail-ee0-f43.google.com with SMTP id e51so820209eek.30 for ; Thu, 20 Feb 2014 04:29:28 -0800 (PST) Sender: Paolo Bonzini From: Paolo Bonzini Date: Thu, 20 Feb 2014 13:28:59 +0100 Message-Id: <1392899343-5226-9-git-send-email-pbonzini@redhat.com> In-Reply-To: <1392899343-5226-1-git-send-email-pbonzini@redhat.com> References: <1392899343-5226-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PULL 08/12] Makefile: install modules with "make install" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, famz@redhat.com, aliguori@amazon.com From: Fam Zheng Install all the modules to ${MODDIR}. Signed-off-by: Fam Zheng Signed-off-by: Paolo Bonzini --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 07d1ed7..57d83a3 100644 --- a/Makefile +++ b/Makefile @@ -368,6 +368,12 @@ install-datadir install-localstatedir ifneq ($(TOOLS),) $(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)" endif +ifneq ($(CONFIG_MODULES),) + $(INSTALL_DIR) "$(DESTDIR)$(qemu_moddir)" + for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \ + $(INSTALL_PROG) $(STRIP_OPT) $$s "$(DESTDIR)$(qemu_moddir)/$${s//\//-}"; \ + done +endif ifneq ($(HELPERS-y),) $(INSTALL_DIR) "$(DESTDIR)$(libexecdir)" $(INSTALL_PROG) $(STRIP_OPT) $(HELPERS-y) "$(DESTDIR)$(libexecdir)" -- 1.8.3.1