Makefile.am 1.64 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
pyshared:
	mkdir pyshared
	mkdir pyshared/isc
36
	cat ${srcdir}/src/lib/config/python/isc/__init__.py ${srcdir}/src/lib/cc/python/isc/__init__.py > pyshared/isc/__init__.py
37
	ln -s ${abs_top_srcdir}/src/lib/config/python/isc/config pyshared/isc/config
38
	ln -s ${abs_top_srcdir}/src/lib/cc/python/isc/cc pyshared/isc/cc
39
	ln -s ${abs_top_srcdir}/src/lib/cc/python/isc/Util pyshared/isc/Util
40
41
42

include:
	mkdir include
43
	ln -s ${abs_top_srcdir}/src/lib/auth/cpp include/auth
44
45
46
	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
47
	ln -s ${abs_top_srcdir}/src/lib/exceptions/cpp include/exceptions
48
49
50
51
52
53

stree_symlinks:	pyshared include
.PHONY: stree_symlinks

all: stree_symlinks
clean-local:
54
55
56
57
58
59
60
61
62
63
64
	@if [ -d pyshared/isc ] ; then \
		rm -f pyshared/isc/*; \
		rmdir pyshared/isc; \
	fi
	@if [ -d pyshared ]; then \
		rmdir pyshared; \
	fi
	@if [ -d include ]; then \
		rm -f include/*; \
		rmdir include; \
	fi