Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
59 lines (45 sloc) 848 Bytes
all: test
deps:
go get -d -v ./...
updatedeps:
go get -d -v -u -f ./...
testdeps:
go get -d -v -t ./...
updatetestdeps:
go get -d -v -t -u -f ./...
build: deps
go build ./...
gen:
TMPL_FILE_PATH=internal/cmd/gen-bolttype/bolttype.gen.go.tmpl GO_FILE_PATH=bolttype.gen.go go run internal/cmd/gen-bolttype/main.go
lint: testdeps
go get -v github.com/golang/lint/golint
for file in $$(find . -name '*.go'); do \
golint $${file}; \
if [ -n "$$(golint $${file})" ]; then \
exit 1; \
fi; \
done
vet: testdeps
go vet ./...
errcheck: testdeps
go get -v github.com/kisielk/errcheck
errcheck ./...
pretest: lint vet errcheck
test: testdeps pretest
go test ./...
clean:
go clean ./...
.PHONY: \
all \
deps \
updatedeps \
testdeps \
updatetestdeps \
build \
gen \
lint \
vet \
errcheck \
pretest \
test \
clean