From ed2d9acd1a5827787478fe4d2a9683f1ee7059f1 Mon Sep 17 00:00:00 2001 From: Olaf Bergmann Date: Wed, 1 Aug 2018 20:31:42 +0200 Subject: [PATCH] Makefile.am: added target for cleaning gcov files Calling 'make clean' now deleted all files ending on .gcda, .gcno, and .gcov. This requires the find utility to be present. --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 0cbd18a0..2ae82ca5 100644 --- a/Makefile.am +++ b/Makefile.am @@ -223,6 +223,9 @@ dist_noinst_SCRIPTS = autogen.sh ## is 'make distclean' called. NOTE: To re create the *.{map,sym} files you ## need to call the target update-map-file after the configure script was ## running! +clean-local: + -find \( -name '*.gcda' -o -name '*.gcno' -o -name '*.gcov' \) -delete + distclean-local: @rm -f src/*.o src/*.lo rm -f libcoap-$(LIBCOAP_API_VERSION).map