Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
There has been a change in the protoc binary from version v1.12. For
more information refer to:
golang/protobuf#1070.

This Makefile has been kept minimal to achieve the following:

1. Changes should be made to the replication.proto file in the root of
   the repo.
2. The generated code is split into two files now,
   lib/go/replication.pb.go and lib/go/replication_grpc.pb.go

TODO: Add validation methods to ensure that the generated files match
with the commited files.

Signed-off-by: Raghavendra Talur <[email protected]>
  • Loading branch information
raghavendra-talur committed Feb 9, 2021
1 parent c11570c commit 5dc84a0
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
all: build


build: replication.proto
protoc --go_out=lib/go --go_opt=paths=source_relative *.proto
protoc --go-grpc_out=lib/go --go-grpc_opt=paths=source_relative *.proto

0 comments on commit 5dc84a0

Please sign in to comment.