2015-08-07 20:36:36 +00:00
|
|
|
FILES:=$(wildcard out/*.go)
|
|
|
|
|
2015-05-11 23:31:38 +00:00
|
|
|
.PHONY: check
|
2015-08-07 20:36:36 +00:00
|
|
|
check: errcheck vet golint $(FILES:.go=.checked)
|
|
|
|
|
|
|
|
out/%.checked: out/%.go
|
|
|
|
errcheck $<
|
|
|
|
go tool vet --all $<
|
|
|
|
go tool vet --shadow $<
|
|
|
|
golint $<
|
2015-05-11 23:31:38 +00:00
|
|
|
|
|
|
|
$(GOPATH)/bin/go-bindata: $(wildcard ../*.go) $(wildcard ../**/*.go)
|
|
|
|
go install ../...
|
|
|
|
|
|
|
|
out/compress-memcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata
|
|
|
|
$(GOPATH)/bin/go-bindata -o $@ in/...
|
|
|
|
|
|
|
|
out/compress-nomemcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata
|
|
|
|
$(GOPATH)/bin/go-bindata -nomemcopy -o $@ in/...
|
|
|
|
|
|
|
|
out/debug.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata
|
|
|
|
$(GOPATH)/bin/go-bindata -debug -o $@ in/...
|
|
|
|
|
|
|
|
out/nocompress-memcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata
|
|
|
|
$(GOPATH)/bin/go-bindata -nocompress -o $@ in/...
|
|
|
|
|
|
|
|
out/nocompress-nomemcopy.go: $(wildcard in/**/*) $(GOPATH)/bin/go-bindata
|
|
|
|
$(GOPATH)/bin/go-bindata -nocompress -nomemcopy -o $@ in/...
|
|
|
|
|
|
|
|
errcheck:
|
|
|
|
go get github.com/kisielk/errcheck
|
|
|
|
|
2015-08-07 20:36:36 +00:00
|
|
|
vet:
|
|
|
|
go get golang.org/x/tools/cmd/vet
|
2015-05-11 23:31:38 +00:00
|
|
|
|
|
|
|
golint:
|
|
|
|
go get github.com/golang/lint/golint
|