aboutsummaryrefslogtreecommitdiff
path: root/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'makefile')
-rw-r--r--makefile9
1 files changed, 8 insertions, 1 deletions
diff --git a/makefile b/makefile
index 5f5340b..090877e 100644
--- a/makefile
+++ b/makefile
@@ -1,5 +1,12 @@
all: doxygen
-doxygen: Doxyfile
+.PHONY: FORCE
+
+doxygen: Doxyfile FORCE
doxygen
+FMT += $(shell git ls-files '*.h' '*.c' '*.cpp')
+format: FORCE
+ clang-format -i $(FMT)
+ clang-tidy --fix-errors $(FMT)
+