This repository has been archived by the owner on Nov 15, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathMakefile
66 lines (51 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
# -----------------------------------------------------------------------------
# Build commands, typically runs project build tool in a subdirectory
#------------------------------------------------------------------------------
all: server planetwars
planetwars: planetwars-match-log planetwars-visualizer planetwars-client
planetwars-match-log:
cd planetwars/match-log ; \
yarn install ; \
yarn build ; \
planetwars-visualizer:
cd planetwars/visualizer ; \
yarn install ; \
yarn build ; \
planetwars-client: client server planetwars-visualizer planetwars-match-log
cd planetwars/client ; \
yarn install ; \
cd bin ; \
ln -sfn ../../../gameserver/target/release/mozaic_bot_driver ; \
client: server
cd client ; \
yarn install ; \
yarn build ; \
server:
cd gameserver ; cargo build --release
# -----------------------------------------------------------------------------
# Clean commands, typically removes build output and dependencies.
#------------------------------------------------------------------------------
clean: clean-server clean-client clean-planetwars
clean-server:
cd gameserver; \
rm -rf target
clean-client:
-cd client; \
rm -rf dist; \
rm -rf node_modules; \
yarn unlink --force; \
clean-planetwars: clean-client clean-planetwars-client clean-planetwars-visualizer clean-planetwars-match-log
cd planetwars/client; \
rm -f bin/mozaic_bot_driver
clean-planetwars-client:
cd planetwars/client; \
rm -rf node_modules; \
rm -rf dist; \
clean-planetwars-visualizer: clean-planetwars-match-log
cd planetwars/visualizer; \
rm -rf node_modules; \
rm -rf dist; \
clean-planetwars-match-log:
cd planetwars/match-log; \
rm -rf node_modules; \
rm -rf dist; \