2009-10-06 11:50:21 -06:00
|
|
|
FAKE = fakeroot -s fake -i fake
|
2009-10-06 14:14:16 -06:00
|
|
|
INSTALL = $(FAKE) install -o 100
|
2009-10-06 11:50:21 -06:00
|
|
|
|
|
|
|
all: tanks.tce
|
|
|
|
|
2009-10-07 13:58:23 -06:00
|
|
|
push: tanks.tce
|
|
|
|
netcat -l -q 0 -p 3333 < tanks.tce
|
|
|
|
|
2009-10-06 11:50:21 -06:00
|
|
|
tanks.tce: target
|
|
|
|
$(FAKE) sh -c 'cd target && tar -czf - .' > $@
|
|
|
|
|
|
|
|
target:
|
|
|
|
$(INSTALL) -d target/var/lib/tanks/
|
|
|
|
$(INSTALL) -d target/var/lib/tanks/results/
|
2009-10-07 13:58:23 -06:00
|
|
|
$(INSTALL) -d target/var/lib/tanks/errors/
|
2009-10-06 11:50:21 -06:00
|
|
|
$(INSTALL) -d target/var/lib/tanks/ai/easy
|
|
|
|
$(INSTALL) -d target/var/lib/tanks/ai/medium
|
|
|
|
$(INSTALL) -d target/var/lib/tanks/ai/hard
|
|
|
|
$(INSTALL) -d target/var/lib/tanks/ai/players
|
|
|
|
$(INSTALL) AI/easy/* target/var/lib/tanks/ai/easy/
|
|
|
|
$(INSTALL) AI/medium/* target/var/lib/tanks/ai/medium/
|
|
|
|
$(INSTALL) AI/hard/* target/var/lib/tanks/ai/hard/
|
|
|
|
|
2009-10-07 10:50:18 -06:00
|
|
|
$(INSTALL) -d target/usr/lib/www/tanks/
|
|
|
|
$(INSTALL) www/* target/usr/lib/www/tanks/
|
2009-10-06 11:50:21 -06:00
|
|
|
|
2009-10-08 09:04:07 -06:00
|
|
|
ln -s /var/lib/tanks/results target/usr/lib/www/tanks/results
|
2009-10-07 21:22:16 -06:00
|
|
|
|
2009-10-06 11:50:21 -06:00
|
|
|
$(INSTALL) -d target/usr/lib/python2.6/site-packages/tanks/
|
|
|
|
$(INSTALL) lib/* target/usr/lib/python2.6/site-packages/tanks/
|
|
|
|
|
|
|
|
$(INSTALL) -d target/var/service/tanks
|
2009-10-07 13:53:51 -06:00
|
|
|
$(INSTALL) run run_tanks.py target/var/service/tanks/
|
2009-10-07 21:22:16 -06:00
|
|
|
|
2009-10-06 11:50:21 -06:00
|
|
|
$(INSTALL) -d target/var/service/tanks/log/
|
|
|
|
$(INSTALL) log.run target/var/service/tanks/log/run
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf target tanks.tce fake
|