matrixion/Makefile
Konstantinos Sideris 4a7b005c64 Add lint rule
2017-04-30 15:10:59 +03:00

20 lines
359 B
Makefile

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
release-debug:
@cmake -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
@cmake --build build
run:
@./build/nheko
lint:
@clang-format -i $(SRC)
clean:
rm -rf build
.PHONY: build