28 ## really we should require gcj/mcs/python also but since they are
29 ## annoying to install, we don't for now
31 if test -z "$(QT_SUBDIR)" || test -z "$(GLIB_SUBDIR)" ; then \
32 echo "You have to build with Qt and GLib to make dist" ; \
35 SUBDIRS=dbus bus doc $(GLIB_SUBDIR) $(GCJ_SUBDIR) $(MONO_SUBDIR) $(QT_SUBDIR) $(QT3_SUBDIR) $(PYTHON_SUBDIR) tools test
36 DIST_SUBDIRS=dbus bus doc glib qt qt3 gcj mono python tools test
38 pkgconfigdir = $(libdir)/pkgconfig
39 pkgconfig_DATA = dbus-1.pc $(GLIB_PC) $(MONO_PC)
56 find -name "*.da" -o -name "*.gcov" | xargs rm || true
59 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
61 GCOV_DIRS=dbus bus $(GLIB_SUBDIR) $(QT_SUBDIR)
63 ## .PHONY so it always rebuilds it
64 .PHONY: coverage-report.txt
66 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg" -o -name "*.gcno"` ; \
68 for F in $$BBG_FILES ; do \
69 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
70 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g' | sed -e 's/.gcno/.c/g'` ; \
71 B=`basename $$F .bbg` ; \
73 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
74 DA_libs=`echo $$D/.libs/$$B/.da` ; \
75 if test -e $$DA || test -e $$DA_libs; then \
76 C_FILES="$$C_FILES $$C" ; \
80 $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
82 check-coverage: clean-gcov all check coverage-report.txt
83 cat coverage-report.txt
87 echo "Need to reconfigure with --enable-gcov"
90 echo "Need to reconfigure with --enable-gcov"