Add makefile & intial Proto

This commit is contained in:
AntoineH 2024-09-03 15:55:04 +02:00
parent b0a9be04aa
commit 088775dcbc
2 changed files with 46 additions and 0 deletions

14
makefile Normal file
View 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