diff options
| author | Dario Pagani <> | 2021-01-15 14:58:38 +0100 |
|---|---|---|
| committer | Dario Pagani <> | 2021-01-15 14:58:38 +0100 |
| commit | e42e3edca03f3cbefc3f44649c62948ae50066bb (patch) | |
| tree | 6e39cbe540e4e45b129ed4dc1df886a49e4c0318 /Makefile | |
| parent | 7d10d3ee6a7c8722bac60775d66be6cb8b38b9dd (diff) | |
| download | hid-tminit-e42e3edca03f3cbefc3f44649c62948ae50066bb.tar.gz hid-tminit-e42e3edca03f3cbefc3f44649c62948ae50066bb.zip | |
Allowing for a different KDIR to be used when calling make
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -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 |
