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
51 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
53 GCOV_DIRS=dbus bus $(GLIB_SUBDIR) $(QT_SUBDIR)
55 ## .PHONY so it always rebuilds it
56 .PHONY: coverage-report.txt
58 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
60 for F in $$BBG_FILES ; do \
61 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
62 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \
63 B=`basename $$F .bbg` ; \
65 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
66 DA_libs=`echo $$D/.libs/$$B/.da` ; \
67 if test -e $$DA || test -e $$DA_libs; then \
68 C_FILES="$$C_FILES $$C" ; \
72 $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
74 check-coverage: clean-gcov all check coverage-report.txt
75 cat coverage-report.txt
79 echo "Need to reconfigure with --enable-gcov"
82 echo "Need to reconfigure with --enable-gcov"