aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorRaySlash <stevemathewjoy@gmail.com>2023-10-04 14:11:29 +1000
committerRaySlash <stevemathewjoy@gmail.com>2023-10-04 14:14:51 +1000
commitfc6076449bd39a17fc8210af38c941ece9cf9cc0 (patch)
tree70a62c93d42ba168bb67e7b66d244dcf970b1054 /Makefile
parente5a719b530418f26d957e2cae0c56a92539cb324 (diff)
downloadhid-tmff2-fc6076449bd39a17fc8210af38c941ece9cf9cc0.tar.gz
hid-tmff2-fc6076449bd39a17fc8210af38c941ece9cf9cc0.zip
src, deps, docs: update
- Update the effects documents - Rename `hid-tm*` to `tm*` for folders - Move `Makefile` and `Kbuild` to root - Add `deps/` and move in [hid-tminit](https://github.com/scarburato/hid-tminit/commit/9375f6c7d83af5dd6c8b8fe30351d0f36043b20a)
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..5e2ab40
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,16 @@
+KDIR ?= /lib/modules/$(shell uname -r)/build
+
+all: hid-tminit
+ $(MAKE) -C $(KDIR) M=$(shell pwd) modules
+
+install: hid-tminit
+ $(MAKE) -C $(KDIR) M=$(shell pwd) modules_install
+ depmod -A
+
+clean: hid-tminit
+ $(MAKE) -C $(KDIR) M=$(shell pwd) clean
+
+
+.PHONY: hid-tminit
+hid-tminit:
+ $(MAKE) -C hid-tminit KDIR="$(KDIR)" $(MAKECMDGOALS)