Added gox build

This commit is contained in:
Chris Bednarski 2015-02-14 14:52:12 -08:00
parent 64caf045bc
commit 598bfb7ecb
2 changed files with 9 additions and 1 deletions

2
.gitignore vendored
View File

@ -1,4 +1,4 @@
hostess
main
hostess_*
coverage.out
coverage.html

View File

@ -10,5 +10,13 @@ test: build
@cd lib && go test -coverprofile=../coverage.out
@cd lib && go tool cover -html=../coverage.out -o ../coverage.html
gox:
go get github.com/mitchellh/gox
gox -build-toolchain
build-all: test
@which gox || make gox
gox -arch="amd64" -os="darwin" -os="linux"
install: build test
cp main /usr/sbin/hostess