lokinet/Makefile
2018-05-22 11:54:19 -04:00

19 lines
386 B
Makefile

all: remove-build clean compile
remove-build:
rm -f build.ninja rules.ninja cmake_install.cmake CMakeCache.txt
rm -rf CMakeFiles
clean: build.ninja
ninja clean
build.ninja:
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DCMAKE_CXX_COMPILER=clang++ -DCMAKE_C_COMPILER=clang
compile: build.ninja
ninja
format:
clang-format -i $$(find daemon llarp include | grep -E '\.[h,c](pp)?$$')