Skip to content

Commit

Permalink
Build linux, darwin and windows binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
ejholmes committed Jun 12, 2017
1 parent 6cffc2e commit 184f62b
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
.PHONY: test clean bin

bin/assume-role: *.go
go build -o bin/assume-role .
go build -o $@ .

bin: bin/assume-role-Linux bin/assume-role-Darwin bin/assume-role-Windows.exe

bin/assume-role-Linux: *.go
env GOOS=linux go build -o $@ .
bin/assume-role-Darwin: *.go
env GOOS=darwin go build -o $@ .
bin/assume-role-Windows.exe: *.go
env GOOS=windows go build -o $@ .

clean:
rm -rf bin/*

test:
go test -race $(shell go list ./... | grep -v /vendor/)

0 comments on commit 184f62b

Please sign in to comment.