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