Makefile.am 1.17 KB
Newer Older
1
include globals.mk
2

3 4
# Makefile.am

5 6 7
SOURCES=

ACLOCAL_AMFLAGS = -I m4
8

9
SUBDIRS = src ringtones man doc bin test
10

11
EXTRA_DIST = m4/libtool.m4 \
12 13 14
			 m4/lt~obsolete.m4 \
			 m4/ltoptions.m4 \
			 m4/ltsugar.m4 \
15
			 m4/ltversion.m4 \
Tristan Matthews's avatar
Tristan Matthews committed
16 17
			 contrib/bootstrap \
			 contrib/src
18

19 20 21 22 23 24
precoverage:
	$(AM_V_at)lcov --no-external --capture --initial --directory $(top_builddir) --output-file dring-coverage-base.info

coverage: precoverage check
	$(AM_V_at)lcov --no-external --capture --directory $(top_builddir) --output-file dring-coverage-tests.info
	$(AM_V_at)lcov --add-tracefile dring-coverage-base.info --add-tracefile dring-coverage-tests.info --output-file dring-coverage.info
25
	$(AM_V_at)lcov --remove dring-coverage.info '/contrib/*' '/usr/include/*' '/bin/*' '/foo/bin/*' '/foo/contrib/*' --output-file dring-coverage-filtered.info
26
	$(MKDIR_P) html-output
27
	genhtml -o html-output dring-coverage-filtered.info
28 29 30

coverage-clean:
	$(AM_V_at)lcov --directory $(top_builddir) --zerocounters
31
	$(AM_V_at)rm -rf dring-coverage-filtered.info
32
	$(AM_V_at)rm -rf html-output
33 34 35
	$(AM_V_at)find -name '*.gcda' -exec rm -f {} +
	$(AM_V_at)find -name '*.gcno' -exec rm -f {} +

36
.PHONY: precoverage coverage coverage-clean