[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v8 7/9] Makefile: install modules with "make install
From: |
Fam Zheng |
Subject: |
[Qemu-devel] [PATCH v8 7/9] Makefile: install modules with "make install" |
Date: |
Fri, 13 Sep 2013 16:38:52 +0800 |
Install all the subdirs for modules under configure option "moddir".
Signed-off-by: Fam Zheng <address@hidden>
---
Makefile | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/Makefile b/Makefile
index ef76967..044f4ce 100644
--- a/Makefile
+++ b/Makefile
@@ -360,6 +360,12 @@ install-datadir install-localstatedir
ifneq ($(TOOLS),)
$(INSTALL_PROG) $(STRIP_OPT) $(TOOLS) "$(DESTDIR)$(bindir)"
endif
+ifneq ($(CONFIG_MODULES),)
+ for s in $(patsubst %.mo,%$(DSOSUF),$(modules-m)); do \
+ $(INSTALL_DIR) "$(DESTDIR)$(moddir)/$$(dirname $$s)"; \
+ $(INSTALL_PROG) $(STRIP_OPT) $$s
"$(DESTDIR)$(moddir)/$$(dirname $$s)"; \
+ done
+endif
ifneq ($(HELPERS-y),)
$(INSTALL_DIR) "$(DESTDIR)$(libexecdir)"
$(INSTALL_PROG) $(STRIP_OPT) $(HELPERS-y) "$(DESTDIR)$(libexecdir)"
--
1.8.3.1
- [Qemu-devel] [PATCH v8 3/9] rule.mak: allow per object cflags and libs, (continued)
- [Qemu-devel] [PATCH v8 6/9] module: add configurable module whitelist, Fam Zheng, 2013/09/13
- [Qemu-devel] [PATCH v8 7/9] Makefile: install modules with "make install",
Fam Zheng <=
- [Qemu-devel] [PATCH v8 8/9] .gitignore: ignore module related files (dll, so, mo), Fam Zheng, 2013/09/13
- [Qemu-devel] [PATCH v8 9/9] block: convert block drivers linked with libs to modules, Fam Zheng, 2013/09/13