4 GLIB_PC=dbus-glib-1.0.pc
11 SUBDIRS=dbus bus test doc $(GLIB_SUBDIR) $(QT_SUBDIR) tools
13 pkgconfigdir = $(libdir)/pkgconfig
14 pkgconfig_DATA = dbus-1.0.pc $(GLIB_PC)
31 echo "You have to configure with --enable-tests to make check" ; \
37 find -name "*.da" -o -name "*.gcov" | xargs rm || true
39 ## .PHONY so it always rebuilds it
40 .PHONY: coverage-report.txt
42 GCOV_FILES=`find dbus bus $(GLIB_SUBDIR) $(QT_SUBDIR) -name "*.bbg"` ; \
44 for F in $$GCOV_FILES; do \
45 C=`echo $$F | sed -e 's/.bbg/.c/g'` ; \
46 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
47 if test -e $$DA ; then \
48 C_FILES="$$C_FILES $$C" ; \
52 $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
54 check-coverage: clean-gcov all check coverage-report.txt
55 cat coverage-report.txt
59 echo "Need to reconfigure with --enable-gcov"
62 echo "Need to reconfigure with --enable-gcov"