muzgen/Makefile

36 lines
717 B
Makefile

.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 \
--suppress=missingIncludeSystem \
--suppress=missingInclude \
--suppress=unmatchedSuppression
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