-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmakefile
41 lines (26 loc) · 1.28 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
#Submodule management
submodules:
@git submodule init && git submodule update
pullnewestgamesubmodules:
@git submodule update --remote --merge
#Cycle Config
cycleconfig: game/carbon/src/scenes/config.js game/nitrogen/src/scenes/config.js game/water/src/scenes/config.js
game/nitrogen:
@git submodule init && git submodule update
game/water:
@git submodule init && git submodule update
game/carbon:
@git submodule init && git submodule update
game/nitrogen/src/scenes/config.js: game/nitrogen
@cp game/nitrogen/src/scenes/config.js{.template,} && echo 'game_type = NITROGEN_GAME;' >> game/nitrogen/src/scenes/config.js
game/water/src/scenes/config.js: game/water
@cp game/water/src/scenes/config.js{.template,} && echo 'game_type = WATER_GAME;' >> game/water/src/scenes/config.js
game/carbon/src/scenes/config.js: game/carbon
@cp game/carbon/src/scenes/config.js{.template,} && echo 'game_type = CARBON_GAME;' >> game/carbon/src/scenes/config.js
cleancycleconfig:
@rm game/nitrogen/src/scenes/config.js ; rm game/water/src/scenes/config.js ; rm game/carbon/src/scenes/config.js
#Deployment
deploy: cycleconfig
rsync -vrc * [email protected]:/httpdocs --exclude-from rsync-exclude
deploy-beta: cycleconfig
rsync -vrc * [email protected]:/httpdocs/beta --exclude-from rsync-exclude