summaryrefslogtreecommitdiff
path: root/Makefile
blob: e754badf03c58a93f43eb22b16803f4a6173e3db (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
# You must use the current protoc-gen-go
#
# go-clone --go-src google.golang.org/protobuf
# cd ~/go/src/google.golang.org/protobuf/cmd/protoc-gen-go
# go install


all: goimports forgeConfig.pb.go uuid.pb.go patch.pb.go vet

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

# autofixes your import headers in your golang files
goimports:
	goimports -w *.go

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

forgeConfig.pb.go: forgeConfig.proto
	autogenpb --proto forgeConfig.proto

uuid.pb.go: uuid.proto
	autogenpb --proto uuid.proto

patch.pb.go: patch.proto
	autogenpb --proto patch.proto