23 ## really we should require gcj/mcs/python also but since they are
24 ## annoying to install, we don't for now
26 if test -z "$(QT_SUBDIR)" || test -z "$(GLIB_SUBDIR)" ; then \
27 echo "You have to build with Qt and GLib to make dist" ; \
30 SUBDIRS=dbus bus doc $(GLIB_SUBDIR) $(GCJ_SUBDIR) $(MONO_SUBDIR) $(QT_SUBDIR) $(PYTHON_SUBDIR) test tools
32 pkgconfigdir = $(libdir)/pkgconfig
33 pkgconfig_DATA = dbus-1.pc $(GLIB_PC)
48 find -name "*.da" -o -name "*.gcov" | xargs rm || true
50 ## .PHONY so it always rebuilds it
51 .PHONY: coverage-report.txt
53 GCOV_FILES=`find dbus bus $(GLIB_SUBDIR) $(QT_SUBDIR) -name "*.bbg"` ; \
55 for F in $$GCOV_FILES; do \
56 C=`echo $$F | sed -e 's/.bbg/.c/g'` ; \
57 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
58 if test -e $$DA ; then \
59 C_FILES="$$C_FILES $$C" ; \
63 $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
65 check-coverage: clean-gcov all check coverage-report.txt
66 cat coverage-report.txt
70 echo "Need to reconfigure with --enable-gcov"
73 echo "Need to reconfigure with --enable-gcov"