Sun, 26 Jan 2025 11:28:50 +0100
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 "$@"