Skip to content

Commit

Permalink
Merge pull request #31 from wzzrd/develop
Browse files Browse the repository at this point in the history
Add install and uninstall targets to Makefile
  • Loading branch information
Lekensteyn committed Aug 26, 2012
2 parents 8ada884 + 5f2db6c commit d54dd45
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit d54dd45

Please sign in to comment.