summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-30 15:10:59 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-04-30 15:10:59 +0300
commit4a7b005c6420adef50e4321f8ca5d11bc07763ce (patch)
treed169c1235460bfc4d3f8533268eb5c99fcb56a3b /Makefile
parentFix MainWindow being out of focus when the fullscreen overlay is closed (diff)
downloadnheko-4a7b005c6420adef50e4321f8ca5d11bc07763ce.tar.xz
Add lint rule
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