summaryrefslogtreecommitdiff
path: root/Makefile
blob: 35867ad18cda2ddc8b31c9e419cc04ff28fd373b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
all: clean chat.pb.go book.pb.go goimports vet

goimports:
	goimports -w *.go

chat.pb.go: chat.proto
	autogenpb --proto chat.proto

book.pb.go: book.proto
	autogenpb --proto book.proto

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

vet:
	@GO111MODULE=off go vet
	@echo this go library package builds okay