skopy/Makefile

19 lines
379 B
Makefile

.PHONY: build tests install
build:
cmake -B build
cmake --build build
tests: build
@build/tests/skopy-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 tests cli \
--suppress=missingIncludeSystem \
--suppress=missingInclude