19 lines
384 B
Makefile
19 lines
384 B
Makefile
.PHONY: build check install tests
|
|
|
|
build:
|
|
cmake -B build
|
|
cmake --build build
|
|
|
|
tests: build
|
|
@build/tests/moka-tests \
|
|
&& echo -e "\e[32m=== All tests passed ===\e[0m" \
|
|
|| echo -e "\e[31m=== Some tests failed ===\e[0m"
|
|
|
|
install: tests
|
|
sudo cmake --install build
|
|
|
|
check:
|
|
@cppcheck --enable=all -q lib src tests \
|
|
--suppress=missingIncludeSystem \
|
|
--suppress=unusedFunction
|