summaryrefslogtreecommitdiffstats
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
parente6fd80f87f31d15c2a1ec73a22ba3e76647151f0 (diff)
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