hostess/Makefile

27 lines
530 B
Makefile
Raw Normal View History

2015-02-05 05:21:03 +00:00
all: build test
2015-02-14 20:05:20 +00:00
deps:
2015-02-24 07:49:55 +00:00
go get golang.org/x/tools/cmd/cover
2015-02-14 20:05:20 +00:00
go get github.com/codegangsta/cli
build: deps
2015-02-24 09:43:33 +00:00
go build -o hostess cmd/hostess/main.go
2015-01-30 06:46:05 +00:00
2015-02-24 09:43:33 +00:00
test:
2015-02-24 09:00:01 +00:00
@go test -coverprofile=../coverage.out
@go tool cover -html=../coverage.out -o ../coverage.html
2015-01-30 06:46:05 +00:00
2015-02-14 22:52:12 +00:00
gox:
go get github.com/mitchellh/gox
gox -build-toolchain
build-all: test
@which gox || make gox
2015-02-24 09:43:33 +00:00
gox -arch="amd64" -os="darwin" -os="linux" github.com/cbednarski/hostess/cmd/hostess
2015-02-14 22:52:12 +00:00
2015-02-04 08:14:46 +00:00
install: build test
2015-02-24 09:43:33 +00:00
cp hostess /usr/sbin/hostess
2015-02-24 09:47:35 +00:00
clean:
rm ./hostess
rm ./hostess_*