From 5efd0a61aab1df3d01fa8c699d06ae7cf2449111 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Tue, 18 Jul 2023 20:10:24 +0300 Subject: [PATCH] build: improve 'coverage' target Ensure we compile everything first. --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 953deece..27465bde 100644 --- a/Makefile +++ b/Makefile @@ -116,8 +116,9 @@ $(BUILDDIR_COVERAGE): covfile:=$(BUILDDIR_COVERAGE)/meson-logs/coverage.info -# generate by hand, meson's built-ins are unflexible +# generate by hand, meson's built-ins are rather inflexible coverage: $(BUILDDIR_COVERAGE) + @$(MESON) compile -C $(BUILDDIR_COVERAGE) @$(MESON) test -C $(BUILDDIR_COVERAGE) $(VERBOSE) $(LCOV) --capture --directory . --output-file $(covfile) @$(LCOV) --remove $(covfile) '/usr/*' '*guile*' '*thirdparty*' '*/tests/*' '*mime-object*' --output $(covfile)