summaryrefslogtreecommitdiffstats
path: root/module/Makefile.in
diff options
context:
space:
mode:
Diffstat (limited to 'module/Makefile.in')
-rw-r--r--module/Makefile.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/module/Makefile.in b/module/Makefile.in
index eed81f64e..caa403228 100644
--- a/module/Makefile.in
+++ b/module/Makefile.in
@@ -12,10 +12,19 @@ clean:
if [ -f Module.markers ]; then $(RM) Module.markers; fi
modules_install:
+ # Install the kernel modules
$(MAKE) -C @LINUX_OBJ@ SUBDIRS=`pwd` \
INSTALL_MOD_PATH=$(DESTDIR) \
INSTALL_MOD_DIR=addon/spl $@
find ${DESTDIR}/lib/modules/ -name 'modules.*' | xargs ${RM}
+ sysmap=${DESTDIR}/boot/System.map-@LINUX_VERSION@; \
+ if [ -f $$sysmap ]; then \
+ depmod -ae -F $$sysmap @LINUX_VERSION@; \
+ fi
+
+modules_uninstall:
+ # Uninstall the kernel modules
+ $(RM) -R ${DESTDIR}/lib/modules/@LINUX_VERSION@/addon/spl
distdir:
list='$(subdir-m)'; for subdir in $$list; do \
@@ -25,5 +34,6 @@ distdir:
distclean maintainer-clean: clean
install: modules_install
+uninstall: modules_uninstall
all: modules
check: