File: Makefile.am

package info (click to toggle)
pdfgrep 2.2.0-0.1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,008 kB
  • sloc: sh: 4,258; cpp: 1,703; exp: 617; makefile: 84
file content (45 lines) | stat: -rw-r--r-- 967 bytes parent folder | download
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)