put coverage report into a subdir

Sun, 26 Jan 2025 11:28:50 +0100

author
Mike Becker <universe@uap-core.de>
date
Sun, 26 Jan 2025 11:28:50 +0100
changeset 1153
8e4f46349e23
parent 1152
e4af44b488bc
child 1154
afd12f31d28a

put coverage report into a subdir

src/Makefile file | annotate | diff | comparison | revisions
--- a/src/Makefile	Sun Jan 26 10:23:32 2025 +0100
+++ b/src/Makefile	Sun Jan 26 11:28:50 2025 +0100
@@ -34,13 +34,16 @@
 
 shared: $(build_dir)/libucx$(SHLIB_EXT)
 
-check-coverage: $(SRC:%.c=$(build_dir)/%.gcda)
-	gcovr --html-details $(build_dir)/coverage.html \
+check-coverage: $(SRC:%.c=$(build_dir)/%.gcda) $(build_dir)/coverage
+	gcovr --html-details $(build_dir)/coverage/ucx.html \
 		  --object-directory $(build_dir) \
 		  --root $(root_dir)/src \
 		  --exclude-directories $(build_dir)/tests \
 		  $(build_dir)
 
+$(build_dir)/coverage:
+	$(MKDIR) $@
+
 $(build_dir)/%.gcda:
 	test -f "$@"
 

mercurial