aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
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)