aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2021-03-24 20:48:04 +0200
committerKimplul <kimi.h.kuparinen@gmail.com>2021-03-24 20:48:04 +0200
commit301f7fa87fa2bafbd9ed3436aa7eb865b341563c (patch)
tree1bda82c0cd2f0093d74fb423da626fde0f17dd0a /Makefile
parentc2be549438657a7e0b863a1ed58ba17e8fb5ff33 (diff)
downloadhid-tmff2-301f7fa87fa2bafbd9ed3436aa7eb865b341563c.tar.gz
hid-tmff2-301f7fa87fa2bafbd9ed3436aa7eb865b341563c.zip
Merge branch 'minalloc'
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile20
1 files changed, 13 insertions, 7 deletions
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)