bindata/testdata/Makefile
Tamir Duberstein 57e5327e97 Replace go-nyet with go tool vet --shadow
`go-nyet` is deprecated.
2015-08-07 16:36:36 -04:00

38 lines
1.1 KiB
Makefile

FILES:=$(wildcard out/*.go)
.PHONY: check
check: errcheck vet golint $(FILES:.go=.checked)
out/%.checked: out/%.go
errcheck $<
go tool vet --all $<
go tool vet --shadow $<
golint $<
$(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
vet:
go get golang.org/x/tools/cmd/vet
golint:
go get github.com/golang/lint/golint