mirror of https://github.com/dirtbags/tanks.git
Makefile fixes but this is still too damn complicated
This commit is contained in:
parent
55951b7a55
commit
55efb13cd4
13
Makefile
13
Makefile
|
@ -1,6 +1,7 @@
|
||||||
BINARIES = forftanks upload.cgi
|
BINARIES = forftanks upload.cgi
|
||||||
HTML = forf.html procs.html intro.html designer.html debugger.html
|
HTML = forf.html procs.html intro.html designer.html debugger.html
|
||||||
WWW = style.css grunge.png designer.js figures.js tanks.js nav.html.inc jstanks.js
|
WWW += style.css designer.js nav.html.inc jstanks.js
|
||||||
|
WWW += docs/assets/images/grunge.png docs/assets/js/figures.js docs/assets/js/tanks.js
|
||||||
|
|
||||||
CFLAGS = -Wall
|
CFLAGS = -Wall
|
||||||
|
|
||||||
|
@ -8,16 +9,18 @@ DESTDIR = /opt/tanks
|
||||||
|
|
||||||
all: $(BINARIES) $(HTML)
|
all: $(BINARIES) $(HTML)
|
||||||
|
|
||||||
install:
|
install: $(BINARIES) $(HTML)
|
||||||
install -d $(DESTDIR)/bin
|
install -d $(DESTDIR)/bin
|
||||||
install go.sh $(DESTDIR)/bin
|
install go.sh $(DESTDIR)/bin
|
||||||
install round.sh $(DESTDIR)/bin
|
install round.sh $(DESTDIR)/bin
|
||||||
|
install rank.awk $(DESTDIR)/bin
|
||||||
|
install summary.awk $(DESTDIR)/bin
|
||||||
install forftanks $(DESTDIR)/bin
|
install forftanks $(DESTDIR)/bin
|
||||||
|
|
||||||
install -d $(DESTDIR)/www
|
install -d $(DESTDIR)/www
|
||||||
install designer.cgi $(DESTDIR)/www
|
install upload.cgi $(DESTDIR)/www
|
||||||
install $(HTML) $(DESTDIR)/www
|
install --mode=0644 $(HTML) $(DESTDIR)/www
|
||||||
install $(WWW) $(DESTDIR)/www
|
install --mode=0644 $(WWW) $(DESTDIR)/www
|
||||||
|
|
||||||
install -d $(DESTDIR)/examples
|
install -d $(DESTDIR)/examples
|
||||||
cp -r examples $(DESTDIR)/examples
|
cp -r examples $(DESTDIR)/examples
|
||||||
|
|
9
go.sh
9
go.sh
|
@ -6,4 +6,11 @@
|
||||||
) &
|
) &
|
||||||
|
|
||||||
(
|
(
|
||||||
cd
|
cd /tanks
|
||||||
|
while true; do
|
||||||
|
./round.sh user/*/
|
||||||
|
sleep 60
|
||||||
|
done
|
||||||
|
) &
|
||||||
|
|
||||||
|
wait
|
||||||
|
|
5
round.sh
5
round.sh
|
@ -8,6 +8,7 @@ else
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
BINDIR=$(dirname $0)
|
||||||
TANKS_GAME=${TANKS_GAME:-forftanks}
|
TANKS_GAME=${TANKS_GAME:-forftanks}
|
||||||
NAV_HTML_INC=${NAV_HTML_INC:-./nav.html.inc} export NAV_HTML_INC
|
NAV_HTML_INC=${NAV_HTML_INC:-./nav.html.inc} export NAV_HTML_INC
|
||||||
|
|
||||||
|
@ -59,7 +60,7 @@ window.onload = go;
|
||||||
<div id="game_box"><canvas id="battlefield"></canvas></div>
|
<div id="game_box"><canvas id="battlefield"></canvas></div>
|
||||||
<p><span id="fps">0</span> fps</p>
|
<p><span id="fps">0</span> fps</p>
|
||||||
EOF
|
EOF
|
||||||
rank.awk $rfn >>$fn
|
awk -f $BINDIR/rank.awk $rfn >>$fn
|
||||||
rm -f $rfn
|
rm -f $rfn
|
||||||
cat $NAV_HTML_INC >>$fn
|
cat $NAV_HTML_INC >>$fn
|
||||||
cat <<EOF >>$fn
|
cat <<EOF >>$fn
|
||||||
|
@ -67,7 +68,7 @@ cat <<EOF >>$fn
|
||||||
</html>
|
</html>
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
summary.awk $tanks > summary.html.$$ && mv summary.html.$$ summary.html
|
awk -f $BINDIR/summary.awk $tanks > summary.html.$$ && mv summary.html.$$ summary.html
|
||||||
|
|
||||||
echo "done."
|
echo "done."
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue