Add makefile & intial Proto
This commit is contained in:
parent
b0a9be04aa
commit
088775dcbc
2 changed files with 46 additions and 0 deletions
14
makefile
Normal file
14
makefile
Normal file
|
@ -0,0 +1,14 @@
|
|||
BINARY_NAME=motorsim
|
||||
SRC_PATH=./src
|
||||
|
||||
all: generate-protos build
|
||||
|
||||
build:
|
||||
go build -o ${BINARY_NAME} ${SRC_PATH}/main.go
|
||||
|
||||
generate-protos:
|
||||
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative ${SRC_PATH}/motorsim.proto
|
||||
|
||||
clean:
|
||||
go clean
|
||||
rm ${BINARY_NAME} ./src/*.pb.go
|
Loading…
Add table
Add a link
Reference in a new issue