From bdbf47c80f456886f56b81cbaede91284c7e7ee9 Mon Sep 17 00:00:00 2001 From: "Dirk-Jan C. Binnema" Date: Sat, 5 Aug 2023 08:35:21 +0300 Subject: [PATCH] Makefile: improve benchmark targets --- Makefile | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index d8279216..55546fe6 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ uninstall: $(BUILDDIR) @$(NINJA) -C $(BUILDDIR) uninstall clean: - @rm -rf $(BUILDDIR) $(BUILDDIR_COVERAGE) $(BUILDDIR_VALGRIND) + @rm -rf $(BUILDDIR) $(BUILDDIR_COVERAGE) $(BUILDDIR_VALGRIND) $(BUILDDIR_BENCHMARK) @rm -rf compile_commands.json # @@ -114,12 +114,12 @@ check-helgrind: test-helgrind # $(BUILDDIR_BENCHMARK): - @$(MESON) setup --buildtype=release $(BUILDDIR_BENCHMARK) + @$(MESON) setup --buildtype=debugoptimized $(BUILDDIR_BENCHMARK) -build-benchmark: $(BUILDDIR_BENCHMARK) +build-benchmark-target: $(BUILDDIR_BENCHMARK) @$(MESON) compile -C $(BUILDDIR_BENCHMARK) $(VERBOSE) -benchmark: $(BUILDDIR_BENCHMARK) +benchmark: build-benchmark-target $(NINJA) -C $(BUILDDIR_BENCHMARK) benchmark # @@ -142,7 +142,6 @@ coverage: $(BUILDDIR_COVERAGE) @$(GENHTML) $(covfile) --output-directory $(BUILDDIR_COVERAGE)/meson-logs/coverage/ @echo "coverage report at: file://$(BUILDDIR_COVERAGE)/meson-logs/coverage/index.html" - # # misc #