aboutsummaryrefslogtreecommitdiffstats
path: root/client/go/Makefile
diff options
context:
space:
mode:
authorMartin Polden <mpolden@mpolden.no>2022-03-17 10:12:37 +0100
committerMartin Polden <mpolden@mpolden.no>2022-03-17 10:12:37 +0100
commit6e8ab76a52b2c2467a8b2038ea39b0e7fde81e0c (patch)
tree6ccb10ec9b1313b5f28db25e1fc32c311386f37e /client/go/Makefile
parent427dd070207d727bef37590e2a4ca6ab0655c5a1 (diff)
Allow custom prefix
Diffstat (limited to 'client/go/Makefile')
-rw-r--r--client/go/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/go/Makefile b/client/go/Makefile
index 8bcb4cba376..0bd7325ef33 100644
--- a/client/go/Makefile
+++ b/client/go/Makefile
@@ -8,8 +8,9 @@ ifeq ($(VERSION),)
VERSION = $(DEVEL_VERSION)
endif
-BIN ?= $(CURDIR)/bin
-SHARE ?= $(CURDIR)/share
+PREFIX ?= $(CURDIR)
+BIN ?= $(PREFIX)/bin
+SHARE ?= $(PREFIX)/share
DIST ?= $(CURDIR)/dist
GO_FLAGS := -ldflags "-X github.com/vespa-engine/vespa/client/go/build.Version=$(VERSION)"