]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
Add coverage files clean up make targets
authorJakub Zelenka <jakub.zelenka@openssl.foundation>
Mon, 4 May 2026 09:50:48 +0000 (11:50 +0200)
committerNikola Pajkovsky <nikolap@openssl.org>
Thu, 7 May 2026 07:08:47 +0000 (09:08 +0200)
Reviewed-by: Nikola Pajkovsky <nikolap@openssl.org>
Reviewed-by: Paul Dale <paul.dale@oracle.com>
MergeDate: Thu May  7 07:09:02 2026
(Merged from https://github.com/openssl/openssl/pull/31071)

Configurations/unix-Makefile.tmpl

index 7cfe7eccfb0944eb0a5933ca43daea0d7f21d34e..f4762e3e6a7e113bf432b4506737751aec3755e1 100644 (file)
@@ -600,6 +600,12 @@ list-tests: ## List available tests that can be invoked via "make test TESTS=<na
 
 ##@ Workspace cleaning
 
+cov-clean: ## Remove all coverage data files
+       -find . \( -name '*.gcda' -o -name '*.gcno' \) \! -type d | xargs $(RM)
+
+cov-reset: ## Remove runtime coverage counters
+       -find . -name '*.gcda' \! -type d | xargs $(RM)
+
 libclean:
        @set -e; for s in $(SHLIB_INFO); do \
                if [ "$$s" = ";" ]; then continue; fi; \
@@ -642,7 +648,7 @@ clean: libclean ## Clean the workspace, keep the configuration
        $(RM) providers/fips*.new
        -find . -type l \! -name '.*' \! -path './pkcs11-provider/*' -exec $(RM) {} \;
 
-distclean: clean ## Clean and remove the configuration
+distclean: clean cov-clean ## Clean and remove the configuration
        $(RM) include/openssl/configuration.h
        $(RM) configdata.pm
        $(RM) Makefile