mirror of https://github.com/dirtbags/moth.git
35 lines
1.0 KiB
Makefile
35 lines
1.0 KiB
Makefile
FAKE = fakeroot -s fake -i fake
|
|
INSTALL = $(fake) install
|
|
|
|
all: tanks.tce
|
|
|
|
tanks.tce: target
|
|
$(FAKE) sh -c 'cd target && tar -czf - .' > $@
|
|
|
|
target:
|
|
$(INSTALL) -d target/var/lib/tanks/
|
|
$(INSTALL) -d target/var/lib/tanks/results/
|
|
$(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/
|
|
|
|
$(INSTALL) -d target/var/lib/www/tanks/
|
|
$(INSTALL) www/* target/var/lib/www/tanks/
|
|
# $(FAKE) ln -s target/var/lib/tanks/ target/var/lib/www/data
|
|
|
|
$(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
|
|
$(INSTALL) run target/var/service/tanks/run
|
|
|
|
$(INSTALL) -d target/var/service/tanks/log/
|
|
$(INSTALL) log.run target/var/service/tanks/log/run
|
|
|
|
clean:
|
|
rm -rf target tanks.tce fake
|