Skip to content

Commit

Permalink
Added make target to build release binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBanks committed Feb 18, 2017
1 parent 7f35427 commit 72a1351
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
# Folders
_obj
_test
bin/

# Architecture specific extensions/prefixes
*.[568vq]
Expand Down
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,9 @@ sanity:
@echo "---------------- FMT ----------------"
@go list ./... | grep -v vendor/ | xargs go fmt
.PHONY: sanity

# Creates release binaries for each supported platform/architecture.
release:
@gox -osarch="darwin/386 darwin/amd64 linux/386 linux/amd64 linux/arm windows/386 windows/amd64" \
-output "bin/{{.Dir}}_{{.OS}}_{{.Arch}}" .
.PHONY: release

0 comments on commit 72a1351

Please sign in to comment.