mirror of
https://github.com/wessel-novacustom/clevo-keyboard.git
synced 2024-11-15 03:34:01 +01:00
94b275f065
Necesarry as default when make is called without dkms. If called with dkms, luckily the variable and value passed as command line parameter overides the one defined in the makefile as desired. So removing was not necesarry, details in: https://www.gnu.org/software/make/manual/make.html#Using-Variables
24 lines
449 B
Makefile
24 lines
449 B
Makefile
obj-m := ./src/tuxedo_keyboard.o
|
|
|
|
tuxedo_tuxedo-objs := ./src/tuxedo_keyboard.o
|
|
|
|
PWD := $(shell pwd)
|
|
KDIR := /lib/modules/$(shell uname -r)/build
|
|
|
|
all:
|
|
make -C $(KDIR) M=$(PWD) modules
|
|
|
|
clean:
|
|
make -C $(KDIR) M=$(PWD) clean
|
|
|
|
install:
|
|
make -C $(KDIR) M=$(PWD) modules_install
|
|
|
|
dkmsadd:
|
|
cp -R . /usr/src/tuxedo_keyboard-1
|
|
dkms add -m tuxedo_keyboard -v 1
|
|
|
|
dkmsremove:
|
|
dkms remove -m tuxedo_keyboard -v 1 --all
|
|
rm -rf /usr/src/tuxedo_keyboard-1
|