-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
36 lines (28 loc) · 818 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
KVER := $(shell uname -r)
MODDIR := "/lib/modules/$(KVER)/extra"
all: module utility
utility:
(cd utility && qmake)
make -C utility
module:
make -C module
module/clevo-xsm-wmi.ko: module
install: module/clevo-xsm-wmi.c module/clevo-xsm-wmi.ko
make -C utility install
make -C dkms install
systemctl enable clevo-xsm-wmi.service
mkdir -p $(MODDIR)
install -m644 module/clevo-xsm-wmi.ko $(MODDIR)
install -m644 module/misc/clevo-xsm-wmi.conf /etc/modules-load.d/clevo-xsm-wmi.conf
depmod
clean:
make -C utility clean
make -C module clean
uninstall:
rm -rf $(MODDIR)/clevo-xsm-wmi.ko
rm -rf /etc/modules-load.d/clevo-xsm-wmi.conf
rm -rf /etc/clevo-xsm.ini
systemctl disable clevo-xsm-wmi.service
make -C utility uninstall
make -C dkms uninstall
.PHONY: all utility module install clean uninstall