diff --git a/Makefile b/Makefile index 36af97c..57df555 100644 --- a/Makefile +++ b/Makefile @@ -17,3 +17,10 @@ STATICCHECK_IGNORE = \ github.com/prometheus/statsd_exporter/main.go:SA1019 \ DOCKER_IMAGE_NAME ?= statsd-exporter + +.PHONY: bench +bench: + @echo ">> running all benchmarks" + $(GO) test -bench . -race $(pkgs) + +all: bench diff --git a/Makefile.common b/Makefile.common index 528d404..eaee9f0 100644 --- a/Makefile.common +++ b/Makefile.common @@ -66,11 +66,6 @@ test: @echo ">> running all tests" $(GO) test -race $(pkgs) -.PHONY: bench -bench: - @echo ">> running all benchmarks" - $(GO) test -bench . -race $(pkgs) - .PHONY: format format: @echo ">> formatting code"