18 lines
348 B
Makefile
18 lines
348 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
|