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) test tools
33 pkgconfigdir = $(libdir)/pkgconfig
34 pkgconfig_DATA = dbus-1.pc $(GLIB_PC) $(MONO_PC)
51 find -name "*.da" -o -name "*.gcov" | xargs rm || true
54 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
56 GCOV_DIRS=dbus bus $(GLIB_SUBDIR) $(QT_SUBDIR)
58 ## .PHONY so it always rebuilds it
59 .PHONY: coverage-report.txt
61 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
63 for F in $$BBG_FILES ; do \
64 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
65 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
66 B=`basename $$F .bbg` ; \
68 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
69 DA_libs=`echo $$D/.libs/$$B/.da` ; \
70 if test -e $$DA || test -e $$DA_libs; then \
71 C_FILES="$$C_FILES $$C" ; \
75 $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
77 check-coverage: clean-gcov all check coverage-report.txt
78 cat coverage-report.txt
82 echo "Need to reconfigure with --enable-gcov"
85 echo "Need to reconfigure with --enable-gcov"