-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
36 lines (27 loc) · 982 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
if HAVE_GCOV
# Coverage targets
clean-gcda:
@echo Removing old coverage results
-find -name '*.gcda' -print | xargs -r rm
-find -name '*.gcno' -print | xargs -r rm
coverage: clean-gcda
-$(MAKE) $(AM_MAKEFLAGS) -k check
$(MAKE) $(AM_MAKEFLAGS) generate-coverage-html
generate-coverage-html:
@echo Collecting coverage data
$(LCOV) --directory $(top_builddir) --capture --output-file coverage.info --no-checksum --compat-libtool
LANG=C $(GENHTML) --prefix $(top_builddir) --output-directory coveragereport --title "Code Coverage" --legend --show-details coverage.info
clean-coverage-html: clean-gcda
-$(LCOV) --directory $(top_builddir) -z
-rm -rf coverage.info coveragereport
clean-local: clean-gcov
clean-gcov: clean-coverage-html
.PHONY: clean-gcda coverage generate-coverage-html clean-coverage-html
endif # HAVE_GCOV
ACLOCAL_AMFLAGS=-I m4
SUBDIRS = src tst
EXTRA_DIST = tap-driver.sh readme.md
analyze:
make analyze -C src
make analyze -C tst
.PHONY: analyze