hostess/Makefile

31 lines
593 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:
go get github.com/golang/lint/golint
go get github.com/stretchr/testify/assert
go get -u ./...
2015-02-14 20:05:20 +00:00
build: deps
2015-03-22 08:42:08 +00:00
go build cmd/hostess/hostess.go
2015-01-30 06:46:05 +00:00
2015-02-24 09:43:33 +00:00
test:
go test -coverprofile=coverage.out; go tool cover -html=coverage.out -o coverage.html
go vet ./...
golint ./...
2015-01-30 06:46:05 +00:00
2015-02-14 22:52:12 +00:00
gox:
go get github.com/mitchellh/gox
2015-02-14 22:52:12 +00:00
gox -build-toolchain
build-all: test
which gox || make gox
gox -arch="amd64" -os="darwin" -os="linux" github.com/cbednarski/hostess/cmd/hostess
2015-02-14 22:52:12 +00:00
install: hostess
2015-03-21 10:42:09 +00:00
cp hostess /usr/local/bin/hostess
2015-02-24 09:47:35 +00:00
clean:
rm -f ./hostess
rm -f ./hostess_*
rm -f ./coverage.*