Merge pull request #31 from wzzrd/develop

Add install and uninstall targets to Makefile
master
Peter 12 years ago
commit d54dd454b6

@ -14,3 +14,14 @@ clean:
load: load:
-/sbin/rmmod $(modname) -/sbin/rmmod $(modname)
/sbin/insmod $(modname).ko /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