-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (29 loc) · 864 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.PHONY: all setup addresssanitizer leaksanitizer undefinedsanitizer clean compile coverage install debian check cppcheck flawfinder clangtidy test clangformat
all: setup compile
setup:
test -d build || meson setup build
sanitizer:
meson setup --reconfigure --debug -Db_sanitize=address,undefined build
setupcoverage:
meson setup --reconfigure -Db_coverage=true build
clean: setup
meson compile --clean -C build
compile: setup
meson compile -C build
coverage: setupcoverage test
ninja -C build coverage
install: setup compile
meson install -C build
debian:
dpkg-buildpackage -b
check: cppcheck flawfinder clangtidy
cppcheck: setup
meson compile -C build cppcheck
flawfinder: setup
meson compile -C build flawfinder
clangtidy: setup
ninja -C build clang-tidy
test: setup
meson test -C build
clangformat: setup
ninja -C build clang-format