-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile.am
45 lines (33 loc) · 967 Bytes
/
Makefile.am
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
45
ACLOCAL_AMFLAGS = -I m4
EXTRA_DIST=autogen.sh README.md CONTRIBUTING.md NEWS.md
SUBDIRS = src completion doc testsuite
# This hack is needed to prevent autotools from emitting spurious warnings about
# redefining .PHONY
PHONIES =
PHONIES += clang-tidy
clang-tidy:
@clang-tidy --checks="modernize-*,bugprone-*,performance-*,readability-*" src/*.cc
# Coverage stuff
if ENABLE_COV
PHONIES += cov-reset
cov-reset:
@rm -rf coverage_report
@find src/ -name "*.gcda" -exec rm {} \;
@find src/ -name "*.gcno" -exec rm {} \;
@lcov --directory src/ --zerocounters
PHONIES += cov-report
cov-report:
@gcovr -r src/
PHONIES += cov-report-html
cov-report-html: coverage
@mkdir -p coverage_report
@lcov --directory src/ --capture --no-external --output-file coverage_report/pdfgrep.info
@genhtml -o coverage_report/ coverage_report/pdfgrep.info
clean-local:
@make cov-reset
PHONIES += coverage
coverage:
@make check
@make cov-report
endif
.PHONY: $(PHONIES)