-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
51 lines (43 loc) · 2.13 KB
/
Makefile
File metadata and controls
51 lines (43 loc) · 2.13 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
.PHONY: gen_protos_go clear_protos_go run_servers
run_core:
echo "Running Core..."
go run ./services/core/core.go
run_auth:
echo "Running Auth..."
go run ./services/auth/auth.go
run_bff:
echo "Running BFF..."
cd ./bff && air
run_planning:
echo "Running Planning..."
python ./services/planning/main.py
gen_protos_go:
protoc -I=./proto --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/Go/ ./proto/common/*.proto
protoc -I=./proto --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/Go/ ./proto/auth/*.proto
protoc -I=./proto --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/Go/ ./proto/planning/*.proto
protoc -I=./proto --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/Go/ ./proto/core/*.proto
protoc -I=./proto --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/Go/ ./proto/notification/*.proto
clear_protos_go:
rm ./gen/Go/common/*.go
rm ./gen/Go/auth/*.go
rm ./gen/Go/planning/*.go
rm ./gen/Go/core/*.go
rm ./gen/Go/notification/*.go
gen_protos_py:
python3 -m grpc_tools.protoc -I proto --python_out=gen/Python --mypy_out=gen/Python --grpc_python_out=gen/Python proto/auth/*.proto
python3 -m grpc_tools.protoc -I proto --python_betterproto_out=services/planning/database/models --python_out=gen/Python --mypy_out=gen/Python --grpc_python_out=gen/Python proto/common/*.proto
python3 -m grpc_tools.protoc -I proto --python_betterproto_out=services/planning/database/models --python_out=gen/Python --mypy_out=gen/Python --grpc_python_out=gen/Python proto/core/*.proto
python3 -m grpc_tools.protoc -I proto --python_out=gen/Python --mypy_out=gen/Python --grpc_python_out=gen/Python proto/planning/*.proto
python3 -m grpc_tools.protoc -I proto --python_out=gen/Python --mypy_out=gen/Python --grpc_python_out=gen/Python proto/notification/*.proto
clear_protos_py:
rm ./gen/Python/common/*.py
rm ./gen/Python/auth/*.py
rm ./gen/Python/planning/*.py
rm ./gen/Python/core/*.py
rm ./gen/Python/notification/*.py
rm ./gen/Python/common/*.pyi
rm ./gen/Python/auth/*.pyi
rm ./gen/Python/planning/*.pyi
rm ./gen/Python/core/*.pyi
rm ./gen/Python/notification/*.pyi
rm ./services/planning/database/models/*.py