From 301f7fa87fa2bafbd9ed3436aa7eb865b341563c Mon Sep 17 00:00:00 2001 From: Kimplul Date: Wed, 24 Mar 2021 20:48:04 +0200 Subject: Merge branch 'minalloc' --- Makefile | 20 +++++++++++++------- 1 file changed, 13 insertions(+), 7 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 5182dbf..1b4e1f4 100644 --- a/Makefile +++ b/Makefile @@ -1,11 +1,17 @@ -obj-m += hid-tminit.o obj-m += hid-tmt300rs.o +KDIR ?= /lib/modules/$(shell uname -r)/build -all: - make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules -install: - make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) modules_install +all: hid-tminit + $(MAKE) -C $(KDIR) M=$(shell pwd) modules + +install: hid-tminit + $(MAKE) -C $(KDIR) M=$(shell pwd) modules_install depmod -A -clean: - make -C /lib/modules/$(shell uname -r)/build M=$(shell pwd) clean +clean: hid-tminit + $(MAKE) -C $(KDIR) M=$(shell pwd) clean + + +.PHONY: hid-tminit +hid-tminit: + $(MAKE) -C hid-tminit $(MAKECMDGOALS) -- cgit v1.3