2024-01-29 10:59:55 +00:00
|
|
|
.PHONY: build tests install doc cov run-doc run-cov
|
|
|
|
|
|
|
|
build:
|
|
|
|
cmake -DCMAKE_EXPORT_COMPILE_COMMANDS=ON \
|
|
|
|
-D CMAKE_BUILD_TYPE=Debug \
|
|
|
|
-B build
|
|
|
|
cmake --build build
|
|
|
|
|
|
|
|
tests: build
|
|
|
|
build/tests/muz-test
|
|
|
|
|
|
|
|
cov: tests
|
|
|
|
cd build && make cov
|
|
|
|
|
|
|
|
install: tests
|
|
|
|
sudo cmake --install build
|
|
|
|
|
|
|
|
check:
|
|
|
|
@cppcheck --language=c++ --enable=all -q lib src tests \
|
2024-01-30 18:09:57 +00:00
|
|
|
--suppress=missingIncludeSystem \
|
|
|
|
--suppress=missingInclude \
|
|
|
|
--suppress=unmatchedSuppression
|
2024-01-29 10:59:55 +00:00
|
|
|
|
|
|
|
doc:
|
|
|
|
mkdir -p build/doc/doxygen
|
|
|
|
mkdir -p build/doc/guide
|
|
|
|
doxygen doc/doxygen/Doxyfile
|
|
|
|
sphinx-build doc/guide build/doc/guide
|
|
|
|
|
|
|
|
run-doc: doc
|
|
|
|
firefox build/doc/doxygen/html/index.html
|
|
|
|
firefox build/doc/guide/index.html
|
|
|
|
|
|
|
|
run-cov: cov
|
|
|
|
firefox build/lib/cov_html/index.html
|