diff options
Diffstat (limited to 'Makefile.am')
-rw-r--r-- | Makefile.am | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/Makefile.am b/Makefile.am index 47ac1def..886618b9 100644 --- a/Makefile.am +++ b/Makefile.am @@ -59,20 +59,20 @@ GCOV_DIRS=dbus bus $(GLIB_SUBDIR) $(QT_SUBDIR) ## .PHONY so it always rebuilds it .PHONY: coverage-report.txt coverage-report.txt: - BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg"` ; \ - C_FILES= ; \ - for F in $$BBG_FILES ; do \ - F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \ - C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g'` ; \ - B=`basename $$F .bbg` ; \ - D=`dirname $$F` ; \ - DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \ - DA_libs=`echo $$D/.libs/$$B/.da` ; \ - if test -e $$DA || test -e $$DA_libs; then \ - C_FILES="$$C_FILES $$C" ; \ - fi ; \ - done ; \ - echo $$C_FILES ; \ + BBG_FILES=`find $(GCOV_DIRS) -name "*.bbg" -o -name "*.gcno"` ; \ + C_FILES= ; \ + for F in $$BBG_FILES ; do \ + F_nolibs=`echo $$F | sed -e 's/.libs\///g'` ; \ + C=`echo $$F_nolibs | sed -e 's/.bbg/.c/g' | sed -e 's/.gcno/.c/g'` ; \ + B=`basename $$F .bbg` ; \ + D=`dirname $$F` ; \ + DA=`echo $$F | sed -e 's/.bbg/.da/g'` ; \ + DA_libs=`echo $$D/.libs/$$B/.da` ; \ + if test -e $$DA || test -e $$DA_libs; then \ + C_FILES="$$C_FILES $$C" ; \ + fi ; \ + done ; \ + echo $$C_FILES ; \ $(top_builddir)/test/decode-gcov --report $$C_FILES > coverage-report.txt check-coverage: clean-gcov all check coverage-report.txt |