1diff --git a/Makefile b/Makefile
2index bffcbd4..fd1d8a3 100644
3--- a/Makefile
4+++ b/Makefile
5@@ -1,6 +1,7 @@
6 VERSION := 0.08
7 DKMS_ROOT_PATH := /usr/src/msi_ec-$(VERSION)
8 TARGET ?= $(shell uname -r)
9+KERNELDIR ?= /lib/modules/$(TARGET)/build/
10
11 ccflags-y := -std=gnu11 -Wno-declaration-after-statement
12
13@@ -10,11 +11,14 @@ obj-m += msi-ec.o
14 all: modules
15
16 modules:
17- @$(MAKE) -C /lib/modules/$(TARGET)/build M=$(CURDIR) modules
18+ @$(MAKE) -C $(KERNELDIR) M=$(CURDIR) modules
19
20 clean:
21 @$(MAKE) -C /lib/modules/$(TARGET)/build M=$(CURDIR) clean
22
23+modules_install:
24+ @$(MAKE) -C $(KERNELDIR) M=$(CURDIR) modules_install
25+
26 load:
27 insmod msi-ec.ko
28