dave/Makefile
2018-04-09 13:18:34 +02:00

10 lines
216 B
Makefile

.PHONY: fmt check
SRC = $(shell find . -type f -name '*.go' -not -path "./vendor/*")
fmt:
@gofmt -s -l -w $(SRC)
check:
@for i in $$(go list ./... | grep -v /vendor/); do golint $${i}; done
@go tool vet ${SRC}