-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
70 lines (54 loc) · 1.67 KB
/
Makefile
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
.PHONY: deps db run start format docs credo check generate-protos generate-arena-protos generate-game-client-protos
deps:
cd apps/game_client/assets && npm install
mix deps.get
db: deps
mix ecto.reset
run:
iex -S mix phx.server
start: db run
purge:
rm -rf devenv.lock .devenv .devenv.flake.nix _build/
devenv gc
format:
mix format
credo:
mix credo
check: credo format
docs:
mix docs
generate-protos: generate-gateway-protos generate-arena-protos generate-game-client-protos generate-arena-load-test-protos generate-bot-manager-protos format
generate-gateway-protos:
protoc \
--elixir_out=apps/gateway/lib/gateway/serialization \
--elixir_opt=package_prefix=gateway.serialization \
--proto_path=apps/serialization \
gateway.proto
generate-arena-protos:
protoc \
--elixir_out=apps/arena/lib/arena/serialization \
--elixir_opt=package_prefix=arena.serialization \
--proto_path=apps/serialization \
messages.proto
generate-game-client-protos:
protoc \
--elixir_out=apps/game_client/lib/game_client/protobuf \
--elixir_opt=package_prefix=game_client.protobuf \
--proto_path=apps/serialization \
messages.proto
protoc \
--js_out=import_style=commonjs:apps/game_client/assets/js/protobuf \
--proto_path=apps/serialization \
messages.proto
generate-arena-load-test-protos:
protoc \
--elixir_out=apps/arena_load_test/lib/arena_load_test/serialization \
--elixir_opt=package_prefix=arena_load_test.serialization \
--proto_path=apps/serialization \
messages.proto
generate-bot-manager-protos:
protoc \
--elixir_out=apps/bot_manager/lib/protobuf \
--elixir_opt=package_prefix=bot_manager.protobuf \
--proto_path=apps/serialization \
messages.proto