aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile7
1 files changed, 4 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d666a97..dd5d7a0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,8 +1,9 @@
obj-m += hid-tminit.o
+KDIR ?= /lib/modules/$(shell uname -r)/build
all:
- make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules
+ make -C $(KDIR) M=$(shell pwd) modules
install:
- make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules_install
+ make -C $(KDIR) M=$(shell pwd) modules_install
clean:
- make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean
+ make -C $(KDIR) M=$(shell pwd) clean