mirror of
https://github.com/cbednarski/hostess
synced 2024-11-16 00:13:01 +00:00
29 lines
576 B
Makefile
29 lines
576 B
Makefile
all: build test
|
|
|
|
deps:
|
|
@go get golang.org/x/tools/cmd/cover
|
|
@go get golang.org/x/tools/cmd/vet
|
|
@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
|
|
go vet
|
|
|
|
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_*
|