-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmakefile
More file actions
38 lines (29 loc) · 826 Bytes
/
makefile
File metadata and controls
38 lines (29 loc) · 826 Bytes
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
.PHONY: reset run down webreset flutterweb sqlc proto
reset: down run
run:
@docker compose up --build
# Deleting the data with -v should be deliberate choice
# it should be avoided unless it is seriously required
down:
@docker compose down
webreset:
@docker compose restart nginx
flutterweb:
@cd ./frontend && flutter build web --wasm --release
sqlc:
@sqlc generate
proto: goproto dartproto
goproto:
@protoc -I=proto \
-I="$(PROTO_PATH)/include" \
--go_out=./backend/internal/server/api \
--go_opt=paths=source_relative \
--go-grpc_out=./backend/internal/server/api \
--go-grpc_opt=paths=source_relative \
./proto/*.proto
dartproto:
@protoc -I=proto \
-I="$(PROTO_PATH)/include" \
--dart_out=grpc:./frontend/lib/src/generated \
"$(PROTO_PATH)/include/google/protobuf/wrappers.proto" \
./proto/*.proto