OSDN Git Service

Correct Dockerfile so that it creates directories properly
[shogi-server/shogi-server.git] / Makefile
1
2 .PHONY: doc
3 doc: clean
4         rdoc --main README -o doc \
5           . shogi-server README mk_html mk_rate csa-file-filter
6
7 .PHONY: test-run
8 test-run: 
9         ./shogi-server --floodgate-games floodgate-600-10,floodgate-3600-0 hoge 4000
10
11
12 .PHONY: test-run-daemon
13 test-run-daemon: 
14         ./shogi-server --floodgate-games floodgate-600-10,floodgate-3600-0 --daemon . --pid-file ./shogi-server.pid --player-log-dir ./player-logs hoge 4000
15
16 .PHONY: stop-daemn
17 stop-daemon:
18         kill `cat shogi-server.pid`
19
20 .PHONY: test-time-run
21 test-time-run: 
22         ruby -r sample/test_time.rb ./shogi-server --floodgate-games floodgate-900-0,floodgate-3600-0 hoge 4000 
23
24 .PHONY: image-build
25 image-build: .image-build
26 .image-build: Dockerfile
27         docker build -t shogiserver/shogiserver:latest -f $< .
28         docker images -q shogiserver/shogiserver:latest > $@
29
30 .PHONY: clean
31 clean:
32         -rm -rf doc .image-*