mirror of
https://github.com/cbednarski/hostess
synced 2024-11-11 19:10:37 +00:00
27 lines
530 B
Makefile
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_*
|