mirror of
https://github.com/cbednarski/hostess
synced 2024-11-16 00:13:01 +00:00
31 lines
509 B
Makefile
31 lines
509 B
Makefile
all: build test
|
|
|
|
deps:
|
|
go get github.com/golang/lint/golint
|
|
go get
|
|
|
|
build: deps
|
|
go build
|
|
|
|
test:
|
|
go test -coverprofile=coverage.out
|
|
go tool cover -html=coverage.out -o coverage.html
|
|
go vet
|
|
golint
|
|
|
|
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/local/bin/hostess
|
|
|
|
clean:
|
|
rm -f ./hostess
|
|
rm -f ./hostess_*
|
|
rm -f ./coverage.*
|