summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: 76e694f2c696f87888e486c31ad4f0271d93fb42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
include Makefile.gtester

ACLOCAL_AMFLAGS = -I m4

SUBDIRS = shm gvdb common engine service gdbus gsettings client proxy bin docs tests

DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc
EXTRA_DIST = trim-lcov.py m4

clean-am: lcov-clean gcno-clean

.PHONY: lcov lcov-clean gcno-clean

lcov: lcov-clean
	$(MAKE) $(AM_MAKEFLAGS) check
	lcov --directory $(top_builddir) --capture --test-name dconf | $(top_srcdir)/trim-lcov.py > dconf-lcov.info
	LANG=C genhtml --prefix $(top_builddir) --output-directory lcov-html --legend --show-details dconf-lcov.info
	@echo
	@echo "     file://$(abs_top_builddir)/lcov-html/index.html"
	@echo

gcno-clean:
	-find . -name '*.gcno' -delete

lcov-clean:
	-lcov --directory $(top_builddir) -z
	find . -name '*.gcda' -delete
	rm -rf lcov-html dconf-lcov.info