Add uninstall makefile target.

git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@430 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Stanislaw Gruszka
2008-07-06 10:45:25 +00:00
parent 2211857c67
commit 3bdd1d549f
2 changed files with 14 additions and 0 deletions
+3
View File
@@ -16,3 +16,6 @@ extraclean:
install:
$(MAKE) -C linux-2.6 install
uninstall:
$(MAKE) -C linux-2.6 uninstall
+11
View File
@@ -85,3 +85,14 @@ else
.PHONY: Module.symvers
endif
KVER := $(shell cat ${LINUX}/.kernelrelease 2> /dev/null )
ifeq ($(KVER),)
KVER := $(shell cat ${LINUX}/include/config/kernel.release 2> /dev/null )
endif
uninstall:
rm -f /lib/modules/${KVER}/extra/isp_mod.ko
rm -f /lib/modules/${KVER}/extra/isp_scst.ko
-/sbin/depmod -a ${KVER}