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.
This commit is contained in:
Olaf Bergmann committed 2018-08-01 20:31:42 +02:00
1 parent 7dc5c9d822
commit ed2d9acd1a
1 file changed
+3
+3
View File
@@ -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