forked from omegablitz/chunky
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
46 lines (35 loc) · 973 Bytes
/
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
OS := $(shell uname)
ifeq ($(OS),CYGWIN_NT-10.0)
GRADLE := ./gradlew.bat
else
GRADLE := ./gradlew
endif
clean:
(cd bukkit && $(GRADLE) clean)
(cd world_slave && ./clean.sh)
(cd chunky_proxy && ./clean.sh)
(cd chunky_manager && ./clean.sh)
(cd world_host && ./clean.sh)
plugin:
(cd bukkit && $(GRADLE) jar)
mkdir -p world_slave/rootfs/plugins
rm -f world_slave/rootfs/plugins/Chunky*.jar
cp bukkit/build/libs/*.jar world_slave/rootfs/plugins
proxy:
(cd bungee_plugin && $(GRADLE) jar)
mkdir -p bungee/rootfs/plugins
rm -f bungee/rootfs/plugins/Chunky*.jar
cp bungee_plugin/build/libs/*.jar bungee/rootfs/plugins
(cd bungee && ./build.sh)
manager:
(cd chunky_manager && ./build.sh)
world:
(cd world_host && ./create.sh)
slave:
(cd world_slave && ./build.sh)
#proxy:
# (cd chunky_proxy && ./build.sh)
run:
(cd compose && docker-compose up)
all: world plugin slave proxy manager run
fresh: clean all