Skip to content

Commit f0f0798

Browse files
authored
Merge pull request #71 from Longsight/build
Build
2 parents 2761e2c + 89565a3 commit f0f0798

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

GNUmakefile

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@ TEST?=$$(go list ./... | grep -v 'vendor')
22
GOFMT_FILES?=$$(find . -name '*.go' | grep -v vendor)
33
WEBSITE_REPO=github.com/hashicorp/terraform-website
44
PKG_NAME=cloudstack
5-
export GOOS?=$(shell uname -s | tr A-Z a-z)
6-
export GOARCH?=$(subst x86_,amd,$(shell uname -m))
5+
GOOS?=$(shell uname -s | tr A-Z a-z)
6+
GOARCH?=$(subst x86_,amd,$(shell uname -m))
77

88
default: build
99

1010
build: fmtcheck
11+
export GOOS=$(GOOS)
12+
export GOARCH=$(GOARCH)
1113
go build -o /tmp/cloudstack-terraform-provider_$(GOOS)_$(GOARCH)
1214

1315
zip: build

0 commit comments

Comments
 (0)