-
Notifications
You must be signed in to change notification settings - Fork 517
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add `make dist' to build release binaries
- Loading branch information
1 parent
e604245
commit 93b0afd
Showing
1 changed file
with
6 additions
and
4 deletions.
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,7 +1,9 @@ | ||
.PHONY: dist | ||
dist: | ||
@mkdir -p ./bin | ||
@rm -f ./bin/* | ||
GOOS=darwin GOARCH=amd64 go build -o ./bin/goose-darwin64 ./cmd/goose | ||
GOOS=linux GOARCH=amd64 go build -o ./bin/goose-linux64 ./cmd/goose | ||
GOOS=linux GOARCH=386 go build -o ./bin/goose-linux386 ./cmd/goose | ||
|
||
GOOS=darwin GOARCH=amd64 go build -o ./bin/goose-darwin64 ./cmd/goose | ||
GOOS=linux GOARCH=amd64 go build -o ./bin/goose-linux64 ./cmd/goose | ||
GOOS=linux GOARCH=386 go build -o ./bin/goose-linux386 ./cmd/goose | ||
GOOS=windows GOARCH=amd64 go build -o ./bin/goose-windows64.exe ./cmd/goose | ||
GOOS=windows GOARCH=386 go build -o ./bin/goose-windows386.exe ./cmd/goose |