From ba25c32eaa04e505bfd546499573ebeb03fe8bd0 Mon Sep 17 00:00:00 2001 From: Jacob Vosmaer Date: Mon, 10 Aug 2020 17:05:32 +0200 Subject: Control go install output with GOBIN --- Makefile.build.mk | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Makefile.build.mk') diff --git a/Makefile.build.mk b/Makefile.build.mk index 10a1a80f..2c9e9159 100644 --- a/Makefile.build.mk +++ b/Makefile.build.mk @@ -15,7 +15,7 @@ generate-mocks: .GOPATH/.ok $Q bin/mockgen -source=internal/interface.go -destination=internal/mocks/mocks.go -package=mocks build: .GOPATH/.ok - $Q go install $(if $V,-v) $(VERSION_FLAGS) -tags "${GO_BUILD_TAGS}" -buildmode exe $(IMPORT_PATH) + $Q GOBIN=$(CURDIR)/bin go install $(if $V,-v) $(VERSION_FLAGS) -tags "${GO_BUILD_TAGS}" -buildmode exe $(IMPORT_PATH) clean: $Q rm -rf bin .GOPATH gitlab-pages -- cgit v1.2.3