aboutsummaryrefslogtreecommitdiff
path: root/src/makefile
diff options
context:
space:
mode:
authorLoek Le Blansch <loek@pipeframe.xyz>2024-10-05 14:50:49 +0200
committerLoek Le Blansch <loek@pipeframe.xyz>2024-10-05 14:50:49 +0200
commite54ebc7e74f3ca94de3467a03397c0aad2aed079 (patch)
tree87275746537881f8d21be33ae842374fd3750d49 /src/makefile
parentc40332b990b025d2bd7b94e41184d7f0547da203 (diff)
`make format` + clang-tidy
Diffstat (limited to 'src/makefile')
-rw-r--r--src/makefile6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/makefile b/src/makefile
new file mode 100644
index 0000000..c1ef601
--- /dev/null
+++ b/src/makefile
@@ -0,0 +1,6 @@
+.PHONY: FORCE
+
+FMT += $(shell git ls-files '*.c' '*.cpp' '*.h' '*.hpp')
+format: FORCE
+ clang-tidy -p build/compile_commands.json --fix-errors $(FMT)
+