Makefiles: Convert from "install" to "make modules_install" (merge r5284 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@6063 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2015-02-10 14:02:11 +00:00
parent 60a712a523
commit d18ffbcb54
4 changed files with 9 additions and 16 deletions
+3 -4
View File
@@ -56,10 +56,9 @@ all: src/$(MODULE_SYMVERS)
PRE_CFLAGS="$(OFED_CFLAGS)" SCST_INC_DIR=$(SCST_INC_DIR) modules
install: all src/ib_srpt.ko
@eval `sed -n 's/#define UTS_RELEASE /KERNELRELEASE=/p' $(KDIR)/include/linux/version.h $(KDIR)/include/linux/utsrelease.h 2>/dev/null`; \
install -vD -m 644 src/ib_srpt.ko \
$(DESTDIR)$(INSTALL_MOD_PATH)/lib/modules/$(KVER)/extra/ib_srpt.ko
-/sbin/depmod -aq $(KVER)
$(MAKE) -C $(KDIR) SUBDIRS=$(shell pwd)/src \
PRE_CFLAGS="$(OFED_CFLAGS)" SCST_INC_DIR=$(SCST_INC_DIR) \
modules_install
src/Module.symvers src/Modules.symvers: $(SCST_SYMVERS_DIR)/$(MODULE_SYMVERS)
@if $(OFED_KERNEL_IB_RPM_INSTALLED); then \