Move bench target out of common Makefile

we should not change the vendored Makefile.common here.

Signed-off-by: Matthias Rampke <mr@soundcloud.com>
This commit is contained in:
Matthias Rampke 2018-10-10 21:37:26 +00:00
parent e5734e34e9
commit 4e53440316
No known key found for this signature in database
GPG key ID: 2CDE413A9BD0A5BC
2 changed files with 7 additions and 5 deletions

View file

@ -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

View file

@ -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"