Makefile.am 1.26 KB
Newer Older
1
SUBDIRS = src
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19
USE_LCOV=@USE_LCOV@
LCOV=@LCOV@
GENHTML=@GENHTML@

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 \
20 21 22 23 24
			c++/4.4\*/\* \
			c++/4.4\*/backward/\* \
			c++/4.4\*/bits/\* \
			c++/4.4\*/ext/\* \
			c++/4.4\*/\*-\*/bits/\* \
25 26 27 28 29 30 31
			boost/\* \
			gtest/\* \
			usr/include/\* \
		--output report.info
	$(GENHTML) -o coverage report.info 

coverage: clean-coverage perform-coverage report-coverage
32

33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
pyshared:
	mkdir pyshared
	mkdir pyshared/isc
	ln -s ${abs_top_srcdir}/src/lib/config/python/isc/config pyshared/isc/config
	ln -s ${abs_top_srcdir}/src/lib/cc/python/ISC/CC pyshared/isc/cc

include:
	mkdir include
	ln -s ${abs_top_srcdir}/src/lib/cc/cpp include/cc
	ln -s ${abs_top_srcdir}/src/lib/config/cpp include/config
	ln -s ${abs_top_srcdir}/src/lib/dns/cpp include/dns

stree_symlinks:	pyshared include
.PHONY: stree_symlinks

all: stree_symlinks
clean-local:
	rm pyshared/isc/config
	rm pyshared/isc/cc
	rmdir pyshared/isc
	rmdir pyshared
	rm include/cc
	rm include/config
	rm include/dns
	rmdir include