-
Notifications
You must be signed in to change notification settings - Fork 14
/
Makefile
27 lines (20 loc) · 882 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
export GO15VENDOREXPERIMENT=1
package = github.com/barnybug/s3/cmd/s3
buildargs = -ldflags '-X github.com/barnybug/s3.version=${TRAVIS_TAG}'
.PHONY: release
default: install
deps:
go get -d -v ./...
test: deps
gucumber
install:
go install -v ./cmd/s3
release:
mkdir -p release
GOOS=linux GOARCH=386 go build $(buildargs) -o release/s3-linux-386 $(package)
GOOS=linux GOARCH=amd64 go build $(buildargs) -o release/s3-linux-amd64 $(package)
GOOS=linux GOARCH=arm go build $(buildargs) -o release/s3-linux-arm $(package)
GOOS=linux GOARCH=arm64 go build $(buildargs) -o release/s3-linux-arm64 $(package)
GOOS=darwin GOARCH=amd64 go build $(buildargs) -o release/s3-darwin-amd64 $(package)
GOOS=windows GOARCH=386 go build $(buildargs) -o release/s3-windows-386.exe $(package)
GOOS=windows GOARCH=amd64 go build $(buildargs) -o release/s3-windows-amd64.exe $(package)