You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
hostess/Makefile

32 lines
631 B
Makefile

all: build test
deps:
go get github.com/golang/lint/golint
go get github.com/stretchr/testify/assert
go get golang.org/x/tools/cmd/cover
go get
build: deps
go build cmd/hostess/hostess.go
9 years ago
test:
go test -coverprofile=coverage.out; go tool cover -html=coverage.out -o coverage.html
go vet ./...
golint ./...
9 years ago
gox:
go get github.com/mitchellh/gox
9 years ago
gox -build-toolchain
build-all: test
which gox || make gox
gox -arch="386 amd64 arm" -os="darwin linux windows" github.com/cbednarski/hostess/cmd/hostess
9 years ago
install: hostess
cp hostess /usr/local/bin/hostess
9 years ago
clean:
rm -f ./hostess
rm -f ./hostess_*
rm -f ./coverage.*