aboutsummaryrefslogtreecommitdiff
path: root/Makefile
blob: dc269d7e082672f9affb9ee2dcf6903be48bca8f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
KDIR ?= /lib/modules/$(shell uname -r)/build

all: deps/hid-tminit
	$(MAKE) -C $(KDIR) M=$(shell pwd) modules

install: deps/hid-tminit
	$(MAKE) -C $(KDIR) M=$(shell pwd) modules_install
	depmod -A

.PHONY: steamdeck-rules
steamdeck-rules:
	install -m 0644 udev/71-thrustmaster-steamdeck.rules /etc/udev/rules.d/

clean: deps/hid-tminit
	$(MAKE) -C $(KDIR) M=$(shell pwd) clean


.PHONY: deps/hid-tminit
deps/hid-tminit:
	$(MAKE) -C deps/hid-tminit KDIR="$(KDIR)" $(MAKECMDGOALS)