diff options
author | brb-g <45642843+brb-g@users.noreply.github.com> | 2019-08-13 16:25:09 -0700 |
---|---|---|
committer | Fabricio Voznika <fvoznika@google.com> | 2019-08-13 16:25:09 -0700 |
commit | 462bafb2e7a4d56b788a7467a9e7c05604f55a15 (patch) | |
tree | ed991d6e2e971ce5be592b577618ee87e0812c65 /Makefile | |
parent | c4b56cbf4332f985336950d9beae9352feb4aeab (diff) |
Add variable controlling the go binary path. (#35)
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -1,5 +1,6 @@ # Base path used to install. DESTDIR=/usr/local +GC=go GO_BUILD_FLAGS= GO_TAGS= GO_LDFLAGS=-ldflags '-s -w -extldflags "-static"' @@ -12,10 +13,10 @@ all: binaries binaries: bin/gvisor-containerd-shim bin/containerd-shim-runsc-v1 bin/gvisor-containerd-shim: $(SOURCES) - CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/gvisor-containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/gvisor-containerd-shim + CGO_ENABLED=0 ${GC} build ${GO_BUILD_FLAGS} -o bin/gvisor-containerd-shim ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/gvisor-containerd-shim bin/containerd-shim-runsc-v1: $(SOURCES) - CGO_ENABLED=0 go build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runsc-v1 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runsc-v1 + CGO_ENABLED=0 ${GC} build ${GO_BUILD_FLAGS} -o bin/containerd-shim-runsc-v1 ${SHIM_GO_LDFLAGS} ${GO_TAGS} ./cmd/containerd-shim-runsc-v1 install: bin/gvisor-containerd-shim mkdir -p $(DESTDIR)/bin |