From 19971a3dde07ef40497b4f2fa70e6f065e6febc9 Mon Sep 17 00:00:00 2001 From: Allan LeSage Date: Tue, 27 Mar 2012 16:14:48 -0500 Subject: Cleaning up *.gcno during clean-local. --- Makefile.am.coverage | 17 ++++++++++------- 1 file changed, 10 insertions(+), 7 deletions(-) (limited to 'Makefile.am.coverage') diff --git a/Makefile.am.coverage b/Makefile.am.coverage index 68bd5bb..fb97747 100644 --- a/Makefile.am.coverage +++ b/Makefile.am.coverage @@ -1,14 +1,22 @@ # Coverage targets +.PHONY: clean-gcno clean-gcda \ + coverage-html generate-coverage-html clean-coverage-html \ + coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr + +clean-local: clean-gcno clean-coverage-html clean-coverage-gcovr + if HAVE_GCOV -.PHONY: clean-gcda +clean-gcno: + @echo Removing old coverage instrumentation + -find -name '*.gcno' -print | xargs -r rm + clean-gcda: @echo Removing old coverage results -find -name '*.gcda' -print | xargs -r rm -.PHONY: coverage-html generate-coverage-html clean-coverage-html coverage-html: clean-gcda -$(MAKE) $(AM_MAKEFLAGS) -k check $(MAKE) $(AM_MAKEFLAGS) generate-coverage-html @@ -21,14 +29,9 @@ generate-coverage-html: clean-coverage-html: clean-gcda -$(LCOV) --directory $(top_builddir) -z -rm -rf coverage.info coveragereport - -.PHONY: clean-local -clean-local: clean-coverage-html - if HAVE_GCOVR -.PHONY: coverage-gcovr generate-coverage-gcovr clean-coverage-gcovr coverage-gcovr: clean-gcda -$(MAKE) $(AM_MAKEFLAGS) -k check $(MAKE) $(AM_MAKEFLAGS) generate-coverage-gcovr -- cgit v1.2.3