forked from jpschewe/rootsh
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile.am.coverage
More file actions
31 lines (23 loc) · 989 Bytes
/
Makefile.am.coverage
File metadata and controls
31 lines (23 loc) · 989 Bytes
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
# -*- Makefile -*-
# Coverage targets
if HAVE_GCOV
.PHONY: clean-gcda
clean-gcda:
@echo Removing old coverage results
-find -name '*.gcda' -print | xargs -r rm
.PHONE: gather-coverage-data
gather-coverage-data:
@echo Collecting coverage data
$(LCOV) --directory $(top_builddir) --capture --output-file coverage.lcov --no-checksum --compat-libtool
$(LCOV) --remove coverage.lcov '/usr/include/*' --output-file --output-file coverage.lcov
.PHONY: coverage-html generate-coverage-html clean-coverage-html
coverage-html: clean-gcda
-$(MAKE) $(AM_MAKEFLAGS) -k check
$(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
generate-coverage-html: gather-coverage-data
LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.lcov
clean-coverage-html: clean-gcda
-$(LCOV) --directory $(top_builddir) -z
-rm -rf coverage.lcov coveragereport
clean-local: clean-coverage-html
endif # HAVE_GCOV