2015-02-05 05:21:03 +00:00
|
|
|
all: build test
|
|
|
|
|
2015-02-14 20:05:20 +00:00
|
|
|
deps:
|
2015-03-20 22:19:56 +00:00
|
|
|
go get github.com/golang/lint/golint
|
2015-05-26 00:06:47 +00:00
|
|
|
go get github.com/stretchr/testify/assert
|
2015-06-06 05:36:55 +00:00
|
|
|
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:
|
2015-03-22 03:23:37 +00:00
|
|
|
go test -coverprofile=coverage.out; go tool cover -html=coverage.out -o coverage.html
|
2015-06-06 05:36:55 +00:00
|
|
|
go vet ./...
|
|
|
|
golint ./...
|
2015-01-30 06:46:05 +00:00
|
|
|
|
2015-02-14 22:52:12 +00:00
|
|
|
gox:
|
2015-03-20 22:19:56 +00:00
|
|
|
go get github.com/mitchellh/gox
|
2015-02-14 22:52:12 +00:00
|
|
|
gox -build-toolchain
|
|
|
|
|
|
|
|
build-all: test
|
2015-03-20 22:19:56 +00:00
|
|
|
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
|
|
|
|
2015-03-29 01:09:50 +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:
|
2015-03-02 05:54:51 +00:00
|
|
|
rm -f ./hostess
|
|
|
|
rm -f ./hostess_*
|
|
|
|
rm -f ./coverage.*
|