Makefile.am 1014 Bytes
Newer Older
1 2
include globals.mak

3 4
# Makefile.am

5 6
SOURCES=

7 8
if BUILD_TEST
TESTS_DIR=test
9 10 11 12 13 14
unittest:
	@(cd test; make)
	@echo ""
	@echo "NOTICE: Unitary tests successfully build"
	@echo "Go in the test directory to run them"
	@echo ""
15 16
else
unittest:
17
	@echo "Ring WARNING:"
18 19
	@echo " -- You need the cppunit devel package to compile the unitary tests."
endif
20

21
ACLOCAL_AMFLAGS = -I m4
22

23
SUBDIRS = src ringtones man $(TESTS_DIR) doc bin
24

25
EXTRA_DIST = m4/libtool.m4 \
26 27 28
			 m4/lt~obsolete.m4 \
			 m4/ltoptions.m4 \
			 m4/ltsugar.m4 \
29
			 m4/ltversion.m4 \
Tristan Matthews's avatar
Tristan Matthews committed
30 31
			 contrib/bootstrap \
			 contrib/src
32 33

coverage:
34
	$(AM_V_at)lcov --directory $(top_builddir) --capture --output-file dring-coverage.info
35
	$(MKDIR_P) html-output
36
	genhtml -o html-output dring-coverage.info
37 38 39

coverage-clean:
	$(AM_V_at)lcov --directory $(top_builddir) --zerocounters
40
	$(AM_V_at)rm -rf dring-coverage.info
41
	$(AM_V_at)rm -rf html-output
42 43 44 45
	$(AM_V_at)find -name '*.gcda' -exec rm -f {} +
	$(AM_V_at)find -name '*.gcno' -exec rm -f {} +

.PHONY: coverage coverage-clean