18 lines
435 B
Makefile
18 lines
435 B
Makefile
generate:
|
|
rm -rf proto
|
|
mkdir -p proto
|
|
protoc \
|
|
-I ./api \
|
|
-I ./third_party \
|
|
--go_out ./proto --go_opt paths=source_relative \
|
|
--go-grpc_out ./proto --go-grpc_opt paths=source_relative \
|
|
--grpc-gateway_out ./proto --grpc-gateway_opt paths=source_relative \
|
|
--openapiv2_out=./resources \
|
|
./api/main.proto
|
|
|
|
run:
|
|
go run ./cmd/cake_crm/main.go
|
|
|
|
build:
|
|
go build -o bin/cake_crm cmd/cake_crm/main.go
|