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