aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDario Pagani <>2021-01-15 14:58:38 +0100
committerDario Pagani <>2021-01-15 14:58:38 +0100
commite42e3edca03f3cbefc3f44649c62948ae50066bb (patch)
tree6e39cbe540e4e45b129ed4dc1df886a49e4c0318
parent7d10d3ee6a7c8722bac60775d66be6cb8b38b9dd (diff)
downloadhid-tminit-e42e3edca03f3cbefc3f44649c62948ae50066bb.tar.gz
hid-tminit-e42e3edca03f3cbefc3f44649c62948ae50066bb.zip
Allowing for a different KDIR to be used when calling make
-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