From: David Schleef Date: Tue, 12 Feb 2002 01:48:50 +0000 (+0000) Subject: Only run depmod if installing to / and kernel is the same X-Git-Tag: r0_7_64~119 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=06c34f6cfab06b6c884c2930b20e8642fffc285b;p=comedi.git Only run depmod if installing to / and kernel is the same --- diff --git a/Makefile.modbuild b/Makefile.modbuild index 510164c6..dc01e8da 100644 --- a/Makefile.modbuild +++ b/Makefile.modbuild @@ -69,7 +69,11 @@ config: dummy env -i $(CONFIG_SHELL) ./configure --linuxdir $(LINUXDIR) modules_install: $(patsubst %, _modinst_%, $(SUBDIRS)) - depmod -a +ifeq ($(INSTALL_MOD_PATH),) +ifeq ($(KERNELRELEASE),$(shell uname -r)) + /sbin/depmod -a +endif +endif _modinst_%: $(MAKE) -C $(patsubst _modinst_%, %, $@) modules_install