summaryrefslogtreecommitdiff
path: root/Makefile
blob: b8ab7b0cf3a5ebf66ab33af95f7227cf300b783a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
all: goimports proto vet
	@echo This GO code passes the compile checks

proto-renumber: clean
	autogenpb --renumber --proto argv.proto
	make goimports vet

proto:
	autogenpb --proto argv.proto

generate: clean
	go mod init
	go mod tidy
	go generate

go-generate:
	rm -f *.pb.go *.patch

goimports:
	goimports -w *.go

vet:
	@GO111MODULE=off go vet

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

redomod:
	rm -f go.*
	goimports -w *.go
	GO111MODULE= go mod init
	GO111MODULE= go mod tidy