Add install and uninstall targets to Makefile

For if you do not want to or are unable to use dkms
master
Maxim Burgerhout 12 years ago
parent 8ada8849f2
commit 5f2db6c26a

@ -14,3 +14,14 @@ clean:
load:
-/sbin/rmmod $(modname)
/sbin/insmod $(modname).ko
install:
mkdir -p /lib/modules/$(KVERSION)/misc/$(modname)
install -m 0755 -o root -g root $(modname).ko /lib/modules/$(KVERSION)/misc/$(modname)
depmod -a
uninstall:
rm /lib/modules/$(KVERSION)/misc/$(modname)/$(modname).ko
rmdir /lib/modules/$(KVERSION)/misc/$(modname)
rmdir /lib/modules/$(KVERSION)/misc
depmod -a

Loading…
Cancel
Save