tanks/Makefile

25 lines
462 B
Makefile
Raw Normal View History

2010-07-19 17:23:30 -06:00
CFLAGS = -Wall
2010-07-06 13:53:17 -06:00
2010-07-20 15:39:10 -06:00
all: html run-tanks designer.cgi
html: forf.html
2010-06-25 16:15:09 -06:00
2010-07-20 15:39:10 -06:00
run-tanks: run-tanks.o ctanks.o forf.o
run-tanks: LDFLAGS = -lm
2010-06-25 16:15:09 -06:00
2010-07-20 15:39:10 -06:00
run-tanks.o: forf.h ctanks.h
forf.o: forf.c forf.h
ctanks.o: ctanks.h
2010-07-06 13:53:17 -06:00
2010-07-20 15:39:10 -06:00
forf.html: forf.html.sh forf/forf.txt
./forf.html.sh > $@
forf.%: forf/forf.%
cp forf/$@ $@
2010-07-20 20:35:24 -06:00
.PRECIOUS: forf/%
2010-07-20 15:39:10 -06:00
forf/%:
git submodule update --init
2010-07-06 13:53:17 -06:00
clean:
2010-07-20 15:39:10 -06:00
rm -f run-tanks designer.cgi *.o forf.c forf.h
rm -f next-round round-*.html summary.html forf.html