1BIN="./bin"2SRC=$(shell find . -name "*.go")34ifeq (, $(shell which golangci-lint))5$(warning "could not find golangci-lint in $(PATH), run: curl -sfL https://install.goreleaser.com/github.com/golangci/golangci-lint.sh | sh")6endif78.PHONY: fmt lint test install_deps clean910default: all1112all: fmt test1314fmt:15 $(info ******************** checking formatting ********************)16 @test -z $(shell gofmt -l $(SRC)) || (gofmt -d $(SRC); exit 1)1718lint:19 $(info ******************** running lint tools ********************)20 golangci-lint run -v2122test: install_deps23 $(info ******************** running tests ********************)24 go test -v $(GO_TEST_FLAGS) ./...2526richtest: install_deps27 $(info ******************** running tests with kyoh86/richgo ********************)28 richgo test -v $(GO_TEST_FLAGS) ./...2930install_deps:31 $(info ******************** downloading dependencies ********************)32 go get -v ./...3334clean:35 rm -rf $(BIN)