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 test $(GLIB_SUBDIR) $(QT_SUBDIR)
55 ## .PHONY so it always rebuilds it
56 .PHONY: coverage-report.txt
58 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
59 for F in $$BBG_FILES ; do \
60 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
61 if test $$F != $$F_nolibs ; then \
62 echo "Moving $$F to $$F_nolibs" ; \
63 mv -f $$F $$F_nolibs ; \
66 DA_FILES=`find $(GCOV_DIRS) -name "*.da"` ; \
67 for F in $$DA_FILES ; do \
68 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
69 if test $$F != $$F_nolibs ; then \
70 echo "Moving $$F to $$F_nolibs" ; \
71 mv -f $$F $$F_nolibs ; \
74 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \
76 for F in $$BBG_FILES ; do \
77 C=`echo $$F | sed -e 's/.bbg/.c/g'` ; \
78 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
79 if test -e $$DA ; then \
80 C_FILES="$$C_FILES $$C" ; \
84 $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
86 check-coverage: clean-gcov all check coverage-report.txt
87 cat coverage-report.txt
91 echo "Need to reconfigure with --enable-gcov"
94 echo "Need to reconfigure with --enable-gcov"