2019-12-21 05:13:11 +08:00
|
|
|
PB = $(wildcard *.proto)
|
|
|
|
GO = $(PB:.proto=.pb.go)
|
|
|
|
|
|
|
|
all: $(GO)
|
|
|
|
|
|
|
|
%.pb.go: %.proto
|
2020-01-15 23:16:35 +08:00
|
|
|
protoc --proto_path=$(PWD):$(PWD)/../.. --gogofaster_out=. $<
|
2019-12-21 05:13:11 +08:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -f *.pb.go
|
|
|
|
rm -f *.go
|