mirror of https://github.com/djcb/mu.git
Makefile: improve benchmark targets
This commit is contained in:
parent
6dfb2aae7b
commit
bdbf47c80f
9
Makefile
9
Makefile
|
@ -74,7 +74,7 @@ uninstall: $(BUILDDIR)
|
||||||
@$(NINJA) -C $(BUILDDIR) uninstall
|
@$(NINJA) -C $(BUILDDIR) uninstall
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
@rm -rf $(BUILDDIR) $(BUILDDIR_COVERAGE) $(BUILDDIR_VALGRIND)
|
@rm -rf $(BUILDDIR) $(BUILDDIR_COVERAGE) $(BUILDDIR_VALGRIND) $(BUILDDIR_BENCHMARK)
|
||||||
@rm -rf compile_commands.json
|
@rm -rf compile_commands.json
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -114,12 +114,12 @@ check-helgrind: test-helgrind
|
||||||
#
|
#
|
||||||
|
|
||||||
$(BUILDDIR_BENCHMARK):
|
$(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)
|
@$(MESON) compile -C $(BUILDDIR_BENCHMARK) $(VERBOSE)
|
||||||
|
|
||||||
benchmark: $(BUILDDIR_BENCHMARK)
|
benchmark: build-benchmark-target
|
||||||
$(NINJA) -C $(BUILDDIR_BENCHMARK) benchmark
|
$(NINJA) -C $(BUILDDIR_BENCHMARK) benchmark
|
||||||
|
|
||||||
#
|
#
|
||||||
|
@ -142,7 +142,6 @@ coverage: $(BUILDDIR_COVERAGE)
|
||||||
@$(GENHTML) $(covfile) --output-directory $(BUILDDIR_COVERAGE)/meson-logs/coverage/
|
@$(GENHTML) $(covfile) --output-directory $(BUILDDIR_COVERAGE)/meson-logs/coverage/
|
||||||
@echo "coverage report at: file://$(BUILDDIR_COVERAGE)/meson-logs/coverage/index.html"
|
@echo "coverage report at: file://$(BUILDDIR_COVERAGE)/meson-logs/coverage/index.html"
|
||||||
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# misc
|
# misc
|
||||||
#
|
#
|
||||||
|
|
Loading…
Reference in New Issue