hostess/Makefile
2015-02-24 01:47:35 -08:00

27 lines
530 B
Makefile

all: build test
deps:
go get golang.org/x/tools/cmd/cover
go get github.com/codegangsta/cli
build: deps
go build -o hostess cmd/hostess/main.go
test:
@go test -coverprofile=../coverage.out
@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" github.com/cbednarski/hostess/cmd/hostess
install: build test
cp hostess /usr/sbin/hostess
clean:
rm ./hostess
rm ./hostess_*