1 ACLOCAL_AMFLAGS = -I m4
4 SUBDIRS=dbus tools test doc
5 DIST_SUBDIRS=dbus tools test doc m4
7 pkgconfigdir = $(libdir)/pkgconfig
8 pkgconfig_DATA = $(GLIB_PC)
16 dbus-bus-introspect.xml \
19 # Creating ChangeLog from git log:
21 MAINTAINERCLEANFILES = ChangeLog
23 DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --enable-checks --enable-tests
24 EXTRA_DIST += ChangeLog
27 $(srcdir)/ChangeLog: FORCE
28 @if test -d "$(srcdir)/.git"; then \
30 ./missing --run git log --stat) | fmt --split-only > $@.tmp \
33 echo Failed to generate ChangeLog, your ChangeLog may be outdated >&2; \
34 (test -f $@ || echo git-log is required to generate this file >> $@)); \
37 (echo A git checkout and git log are required to generate ChangeLog >&2 && \
38 echo A git checkout and git-log are required to generate this file >> $@); \
45 find -name "*.da" -o -name "*.gcov" | xargs rm || true
48 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
50 GCOV_DIRS=$(GLIB_SUBDIR)
52 coverage-report.txt: FORCE
53 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg" -o -name "*.gcno"` ; \
55 for F in $$BBG_FILES ; do \
56 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
57 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g' | sed -e 's/.gcno/.c/g'` ; \
58 B=`basename $$F .bbg` ; \
60 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
61 DA_libs=`echo $$D/.libs/$$B/.da` ; \
62 if test -e $$DA || test -e $$DA_libs; then \
63 C_FILES="$$C_FILES $$C" ; \
67 $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
69 check-coverage: clean-gcov all check coverage-report.txt
70 cat coverage-report.txt
74 echo "Need to reconfigure with --enable-gcov"
77 echo "Need to reconfigure with --enable-gcov"