From 4e534403160ce1391069a757d1c4026a175b202f Mon Sep 17 00:00:00 2001 From: Matthias Rampke Date: Wed, 10 Oct 2018 21:37:26 +0000 Subject: [PATCH] Move `bench` target out of common Makefile we should not change the vendored Makefile.common here. Signed-off-by: Matthias Rampke --- Makefile | 7 +++++++ Makefile.common | 5 ----- 2 files changed, 7 insertions(+), 5 deletions(-) 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"