Makefile.am 900 Bytes
Newer Older
1
SUBDIRS = src
2 3 4 5
USE_LCOV=@USE_LCOV@
LCOV=@LCOV@
GENHTML=@GENHTML@

6 7 8
# When running distcheck target, do not install the configurations
DISTCHECK_CONFIGURE_FLAGS = --disable-configuration-install

9 10 11 12 13 14 15 16 17 18 19 20 21 22
clean-coverage:
	@if [ $(USE_LCOV) = yes ] ; then \
		$(LCOV) --directory . --zerocounters; \
		rm -rf coverage/; \
	else \
		echo "Code coverage not enabled at configuration time"; \
		exit 1; \
	fi

perform-coverage: check

report-coverage:
	$(LCOV) --capture --directory . --output-file all.info
	$(LCOV) --remove all.info \
23 24 25 26 27
			c++/4.4\*/\* \
			c++/4.4\*/backward/\* \
			c++/4.4\*/bits/\* \
			c++/4.4\*/ext/\* \
			c++/4.4\*/\*-\*/bits/\* \
28 29 30
			boost/\* \
			gtest/\* \
			usr/include/\* \
31 32 33 34 35
			tests/\* \
			unittests/\* \
			\*_unittests.cc \
			\*_unittest.cc \
			\*_unittests.h \
36 37 38 39
		--output report.info
	$(GENHTML) -o coverage report.info 

coverage: clean-coverage perform-coverage report-coverage