diff --git a/awusb/Makefile b/awusb/Makefile index e0e4d71..244932d 100644 --- a/awusb/Makefile +++ b/awusb/Makefile @@ -1,5 +1,6 @@ +KVERS?=$(shell uname -r) obj-m := awusb.o -KDIR := /lib/modules/$(shell uname -r)/build +KDIR := /lib/modules/${KVERS}/build PWD := $(shell pwd) default: @@ -8,3 +9,6 @@ clean: $(MAKE) -C $(KDIR) SUBDIRS=$(PWD) clean rm -rf Module.markers module.order module.sysvers +install: awusb.ko + install -d /lib/modules/${KVERS}/kernel/extra/ + install $< /lib/modules/${KVERS}/kernel/extra/