From b4a2a40e5236e07021f25ed1936449fd280e24b6 Mon Sep 17 00:00:00 2001 From: Mark Bates Date: Wed, 26 Sep 2018 10:17:21 -0400 Subject: [PATCH] better makefile --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index 8ff2ae2..52a36f7 100644 --- a/Makefile +++ b/Makefile @@ -9,7 +9,9 @@ deps: $(GO_BIN) get github.com/gobuffalo/release $(GO_BIN) get github.com/gobuffalo/packr/packr $(GO_BIN) get -tags ${TAGS} -t ./... +ifeq ($(GO111MODULE),on) $(GO_BIN) mod tidy +endif build: packr @@ -27,11 +29,15 @@ lint: update: $(GO_BIN) get -u -tags ${TAGS} +ifeq ($(GO111MODULE),on) $(GO_BIN) mod tidy +endif packr make test make install +ifeq ($(GO111MODULE),on) $(GO_BIN) mod tidy +endif release-test: $(GO_BIN) test -tags ${TAGS} -race ./...