From 28025da170fdd77bf12dd4d9cdb663da0ea0679a Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Fri, 8 Jul 2022 18:42:28 -0600 Subject: Add a Makefile that runs lint and stuff --- Makefile | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..73263d0 --- /dev/null +++ b/Makefile @@ -0,0 +1,37 @@ +# main + +build: + go build -o bin/ ./cmd/... +.PHONY: build + +check: + go test -race ./... +.PHONY: check + +lint: tools/bin/golangci-lint + tools/bin/golangci-lint run ./... +.PHONY: lint + +# tools + +tools/bin/%: tools/src/%/pin.go tools/src/%/go.mod + cd $(