mirror of https://github.com/Nheko-Reborn/nheko
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
547 B
25 lines
547 B
SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \))
|
|
|
|
debug:
|
|
@cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
|
|
@cmake --build build
|
|
|
|
release-debug:
|
|
@cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
@cmake --build build
|
|
|
|
run:
|
|
@./build/nheko
|
|
|
|
lint:
|
|
@clang-format -i $(SRC)
|
|
|
|
test:
|
|
@cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
|
|
@cmake --build build
|
|
@cd build && GTEST_COLOR=1 ctest --verbose
|
|
|
|
clean:
|
|
rm -rf build
|
|
|
|
.PHONY: build
|
|
|