1 SUBDIRS=dbus bus doc tools test
2 DIST_SUBDIRS=dbus bus doc tools test
4 pkgconfigdir = $(libdir)/pkgconfig
5 pkgconfig_DATA = dbus-1.pc
18 find -name "*.da" -o -name "*.gcov" | xargs rm || true
21 find -name "*.bbg" -o -name "*.bb" | xargs rm || true
25 ## .PHONY so it always rebuilds it
26 .PHONY: coverage-report.txt
28 BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg" -o -name "*.gcno"` ; \
30 for F in $$BBG_FILES ; do \
31 F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \
32 C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g' | sed -e 's/.gcno/.c/g'` ; \
33 B=`basename $$F .bbg` ; \
35 DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \
36 DA_libs=`echo $$D/.libs/$$B/.da` ; \
37 if test -e $$DA || test -e $$DA_libs; then \
38 C_FILES="$$C_FILES $$C" ; \
42 $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt
44 check-coverage: clean-gcov all check coverage-report.txt
45 cat coverage-report.txt
49 echo "Need to reconfigure with --enable-gcov"
52 echo "Need to reconfigure with --enable-gcov"