Debian Codegraph @

Makefile

raw
1 SRC = $(shell find . -type f -name '*.go' -not -path "*vendor/*")
2
3 default: build
4
5 build: checks
6 cd v5 && go install .
7
8 generate:
9 cd v5 && ../script/generate
10
11 checks: fmt-check
12
13 fmt-check:
14 @test -z "$(shell gofmt -l $(SRC) | tee /dev/stderr)" || (echo "[WARN] Fix formatting issues in with 'make fmt'" && false)
15
16 .PHONY: build checks fmt-check generate