summaryrefslogtreecommitdiff
path: root/Makefile.am
blob: b1f0ee17fa845b62f7f7eb19c43fac71025a8014 (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
29
30
31
32
include Makefile.gtester

ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}

SUBDIRS = shm gvdb common engine service gdbus gsettings dbus-1 client bin docs tests

if ENABLE_EDITOR
SUBDIRS += editor
endif

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

.PHONY: lcov lcov-clean
# use recursive makes in order to ignore errors during check
lcov: lcov-clean
	-$(MAKE) $(AM_MAKEFLAGS) -k 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

clean-am: lcov-clean gcno-clean

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

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