-
Notifications
You must be signed in to change notification settings - Fork 40
/
Copy pathmakefile
45 lines (36 loc) · 1.09 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
all:
mkdir -p bin
javac -Xlint:deprecation -source 1.6 -target 1.6 -d bin/ -sourcepath src/ -classpath bin/ src/Graphwar/*.java src/GraphServer/*.java src/GlobalServer/*.java src/RoomServer/*.java
cp -r bin/Graphwar Graphwar
cp -r bin/GraphServer GraphServer
cp -r bin/GlobalServer GlobalServer
cp -r bin/RoomServer RoomServer
jar cfe graphwar.jar Graphwar.Graphwar GraphServer Graphwar rsc
jar cfe roomServer.jar RoomServer.RoomServer GraphServer RoomServer rsc
jar cfe globalServer.jar GlobalServer.GlobalServer GraphServer GlobalServer rsc
rm -rf Graphwar
rm -rf GraphServer
rm -rf GlobalServer
rm -rf RoomServer
docker-graphwar:
## build graphwar inside of a container
docker run --rm \
-v ${PWD}:/compile \
graphwar/build
docker-image:
## build docker image
docker build -t graphwar/build .
run-client:
## run graphwar on a container
docker run --rm \
-v ${PWD}:/compile \
-v /tmp/.X11-unix:/tmp/.X11-unix \
-e DISPLAY=${DISPLAY} \
--network host \
graphwar/build \
java -jar graphwar.jar
clean:
rm -r bin
rm graphwar.jar
rm roomServer.jar
rm globalServer.jar