summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 5 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 97431093..8bf98a4b 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \))
+
 debug:
 	@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
 	@cmake --build build
@@ -9,6 +11,9 @@ release-debug:
 run:
 	@./build/nheko
 
+lint:
+	@clang-format -i $(SRC)
+
 clean:
 	rm -rf build