forked from remind101/assume-role
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Build linux, darwin and windows binaries
- Loading branch information
Showing
1 changed file
with
15 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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/) |