Makefile 864 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. .PHONY: all setup addresssanitizer leaksanitizer undefinedsanitizer clean compile coverage install debian check cppcheck flawfinder clangtidy test clangformat
  2. all: setup compile
  3. setup:
  4. test -d build || meson setup build
  5. sanitizer:
  6. meson setup --reconfigure --debug -Db_sanitize=address,undefined build
  7. setupcoverage:
  8. meson setup --reconfigure -Db_coverage=true build
  9. clean: setup
  10. meson compile --clean -C build
  11. compile: setup
  12. meson compile -C build
  13. coverage: setupcoverage test
  14. ninja -C build coverage
  15. install: setup compile
  16. meson install -C build
  17. debian:
  18. dpkg-buildpackage -b
  19. check: cppcheck flawfinder clangtidy
  20. cppcheck: setup
  21. meson compile -C build cppcheck
  22. flawfinder: setup
  23. meson compile -C build flawfinder
  24. clangtidy: setup
  25. ninja -C build clang-tidy
  26. test: setup
  27. meson test -C build
  28. clangformat: setup
  29. ninja -C build clang-format