diff options
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 20 |
1 files changed, 13 insertions, 7 deletions
@@ -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) |
