From 3839d4a4c369b1a19f3ce7ba1c1876e24187e229 Mon Sep 17 00:00:00 2001 From: Karolis Rusenas Date: Wed, 28 Jun 2017 12:10:22 +0100 Subject: [PATCH] reducing number of archs --- Makefile | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 9f0b18a1..c2b0d734 100644 --- a/Makefile +++ b/Makefile @@ -5,9 +5,13 @@ VERSION ?= $(shell git describe --tags --abbrev=0) LDFLAGS += -X github.com/storageos/go-cli/version.Version=$(VERSION) LDFLAGS += -X github.com/storageos/go-cli/version.Revision=$(GIT_REVISION) LDFLAGS += -X github.com/storageos/go-cli/version.BuildDate=$(JOBDATE) -# LDFLAGS += -linkmode external -extldflags -static build: - @echo "++ Building storageos binary" + @echo "++ Building relay binary" + cd cmd/storageos && go build -ldflags "$(LDFLAGS)" + +release: + @echo "++ Building relay binaries" cd cmd/storageos && gox -verbose -output="release/{{.Dir}}_{{.OS}}_{{.Arch}}" \ - -ldflags "$(LDFLAGS)" \ No newline at end of file + -ldflags "$(LDFLAGS)" -osarch="linux/amd64 darwin/amd64 windows/amd64" +