forked from benmcollins/libjwt
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
35 lines (24 loc) · 881 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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = include libjwt tests
include $(top_srcdir)/doxygen.mk
clean-local: clean-coverage
-rm -rf doxygen-doc
if HAVE_GCOV
.PHONY: clean-gcda
clean-gcda:
@echo Removing old coverage results
-find -name '*.gcda' -o -name '*.gcno' -print | xargs -r rm
.PHONY: coverage generate-coverage clean-coverage
coverage: clean-gcda
-$(MAKE) $(AM_MAKEFLAGS) -k check
$(MAKE) $(AM_MAKEFLAGS) generate-coverage
generate-coverage:
@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: clean-gcda
-$(LCOV) --directory $(top_builddir) -z
-rm -rf coverage.info coveragereport
else
clean-coverage:
endif # HAVE_GCOV