summaryrefslogtreecommitdiff
path: root/Makefile
blob: 3f7e55ea68748a72a1880db7c97619746e512462 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
all: autogenpb goimports vet
	@echo This GO code passes the compile checks

autogenpb:
	autogenpb --proto key.proto

generate: clean
	go mod init
	go mod tidy
	go generate

goimports:
	goimports -w *.go

vet:
	@GO111MODULE=off go vet

clean:
	rm -f *.pb.go *.patch
	-rm -f go.*
	go-mod-clean purge