[Skiboot] [PATCH 1/2] Makefile: clean the gcov files created during coverage

Neelesh Gupta neelegup at linux.vnet.ibm.com
Wed Feb 4 20:52:00 AEDT 2015


Fix the Makefile to clean up the coverage data files generated
through gcov.

Signed-off-by: Neelesh Gupta <neelegup at linux.vnet.ibm.com>
---
 ccan/Makefile.check      |    4 ++--
 libc/test/Makefile.check |   13 +++++++++++--
 2 files changed, 13 insertions(+), 4 deletions(-)

diff --git a/ccan/Makefile.check b/ccan/Makefile.check
index 767b338..2bc1f1d 100644
--- a/ccan/Makefile.check
+++ b/ccan/Makefile.check
@@ -39,5 +39,5 @@ ccan-test-clean:
 		$(CCAN_TEST:%=%-gcov) \
 		$(CCAN_TEST:%=%.d) \
 		$(CCAN_TEST:%=%.o) \
-		$(CCAN_TEST:%=%-gcov.gcda) \
-		$(CCAN_TEST:%=%-gcov.gcno)
\ No newline at end of file
+		$(CCAN_TEST:%=%.gcda) \
+		$(CCAN_TEST:%=%.gcno)
diff --git a/libc/test/Makefile.check b/libc/test/Makefile.check
index f37fe93..eb6fac8 100644
--- a/libc/test/Makefile.check
+++ b/libc/test/Makefile.check
@@ -57,6 +57,15 @@ $(LIBC_DUALLIB_TEST:%=%-gcov-test.o): %-gcov-test.o : %-test.c %
 clean: libc-test-clean
 
 libc-test-clean:
-	$(RM) -f libc/test/*.[od] $(LIBC_TEST) $(LIBC_TEST:%=%-gcov)
-	$(RM) -f $(LIBC_DUALLIB_TEST) $(LIBC_DUALLIB_TEST:%=%-gcov) \
+	$(RM) -f libc/test/*.[od]
+	$(RM) -f $(LIBC_TEST) \
+		$(LIBC_TEST:%=%-gcov) \
+		$(LIBC_TEST:%=%.gcda) \
+		$(LIBC_TEST:%=%.gcno)
+	$(RM) -f $(LIBC_DUALLIB_TEST) \
+		$(LIBC_DUALLIB_TEST:%=%-gcov) \
+		$(LIBC_DUALLIB_TEST:%=%-gcov.gcda) \
+		$(LIBC_DUALLIB_TEST:%=%-gcov.gcno) \
+		$(LIBC_DUALLIB_TEST:%=%-gcov-test.gcda) \
+		$(LIBC_DUALLIB_TEST:%=%-gcov-test.gcno) \
 		$(LIBC_DUALLIB_TEST:%=%-test.o)



More information about the Skiboot mailing list