2024-03-31 15:44:34 +00:00
|
|
|
.PHONY: build tests install
|
|
|
|
|
|
|
|
build:
|
|
|
|
cmake -B build
|
|
|
|
cmake --build build
|
|
|
|
|
|
|
|
tests: build
|
2024-03-31 21:10:56 +00:00
|
|
|
@build/tests/skopy-tests \
|
2024-03-31 15:44:34 +00:00
|
|
|
&& 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 tests cli \
|
2024-03-31 21:10:56 +00:00
|
|
|
--suppress=missingIncludeSystem \
|
|
|
|
--suppress=missingInclude
|