gitee.com/lh-her-team/common@v1.5.1/helper/libp2pcrypto/pb/Makefile (about)

     1  PB = $(wildcard *.proto)
     2  GO = $(PB:.proto=.pb.go)
     3  
     4  all: $(GO)
     5  
     6  %.pb.go: %.proto
     7  		protoc --proto_path=$(PWD)/../..:. --gogofaster_out=. $<
     8  
     9  clean:
    10  		rm -f *.pb.go
    11  		rm -f *.go