-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathexample.Makefile
More file actions
33 lines (23 loc) · 1.36 KB
/
example.Makefile
File metadata and controls
33 lines (23 loc) · 1.36 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
.PHONY: gen_listings clear_listing gen_users gen_application clear_application gen_file_service clear_file_service gen_frontend clear_frontend clear_users migration migrate rollback drop
gen_listings:
protoc -I=./proto/listings --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/listings ./proto/listings/*.proto
clear_listing:
rm gen/listings/*.go
gen_users:
protoc -I=./proto/users --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/users ./proto/users/*.proto
clear_users:
rm gen/users/*.go
gen_frontend:
protoc -I=./proto/listings ./proto/listings/*.proto --js_out=import_style=commonjs:./frontend/src/proto/listings --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./frontend/src/proto/listings
protoc -I=./proto/users ./proto/users/*.proto --js_out=import_style=commonjs:./frontend/src/proto/users --grpc-web_out=import_style=commonjs,mode=grpcwebtext:./frontend/src/proto/users
clear_frontend:
rm frontend/src/proto/listings/*.js
rm frontend/src/proto/users/*.js
gen_application:
protoc -I=./proto/application --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/application ./proto/application/*.proto
clear_application:
rm gen/application/*.go
gen_file_service:
protoc -I=./proto/file_service --go_opt=paths=source_relative --go_out=plugins=grpc:./gen/file_service ./proto/file_service/*.proto
clear_file_service:
rm gen/file_service/*.go