Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit

Permalink
Merge pull request #14 from storageos/develop
Browse files Browse the repository at this point in the history
reducing number of archs
  • Loading branch information
rusenask authored Jun 28, 2017
2 parents 9bdab8b + 3839d4a commit 62eab9e
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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)"
-ldflags "$(LDFLAGS)" -osarch="linux/amd64 darwin/amd64 windows/amd64"

0 comments on commit 62eab9e

Please sign in to comment.