2014-07-28 16:32:25 -06:00
|
|
|
BINARIES = forftanks upload.cgi
|
2014-07-28 07:54:43 -06:00
|
|
|
HTML = forf.html procs.html intro.html designer.html debugger.html
|
2018-08-07 19:25:42 -06:00
|
|
|
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
|
2010-07-22 22:41:46 -06:00
|
|
|
|
2010-07-19 17:23:30 -06:00
|
|
|
CFLAGS = -Wall
|
2010-07-06 13:53:17 -06:00
|
|
|
|
2018-08-07 12:21:52 -06:00
|
|
|
DESTDIR = /opt/tanks
|
|
|
|
|
2010-07-22 22:41:46 -06:00
|
|
|
all: $(BINARIES) $(HTML)
|
2010-06-25 16:15:09 -06:00
|
|
|
|
2018-08-07 19:25:42 -06:00
|
|
|
install: $(BINARIES) $(HTML)
|
2018-08-07 12:21:52 -06:00
|
|
|
install -d $(DESTDIR)/bin
|
2018-08-07 19:25:42 -06:00
|
|
|
install go.sh $(DESTDIR)/bin
|
2018-08-07 12:21:52 -06:00
|
|
|
install round.sh $(DESTDIR)/bin
|
2018-08-07 19:25:42 -06:00
|
|
|
install rank.awk $(DESTDIR)/bin
|
|
|
|
install summary.awk $(DESTDIR)/bin
|
2018-08-07 12:21:52 -06:00
|
|
|
install forftanks $(DESTDIR)/bin
|
|
|
|
|
|
|
|
install -d $(DESTDIR)/www
|
2018-08-07 19:25:42 -06:00
|
|
|
install upload.cgi $(DESTDIR)/www
|
2018-08-08 08:08:04 -06:00
|
|
|
install -m 0644 $(HTML) $(DESTDIR)/www
|
|
|
|
install -m 0644 $(WWW) $(DESTDIR)/www
|
2018-08-07 12:21:52 -06:00
|
|
|
|
2018-08-07 19:25:42 -06:00
|
|
|
install -d $(DESTDIR)/examples
|
2018-08-07 12:21:52 -06:00
|
|
|
cp -r examples $(DESTDIR)/examples
|
2010-07-27 15:45:40 -06:00
|
|
|
|
2010-07-27 13:17:44 -06:00
|
|
|
forftanks: forftanks.o ctanks.o forf.o
|
2012-07-16 16:53:33 -06:00
|
|
|
forftanks: LDLIBS = -lm
|
2010-06-25 16:15:09 -06:00
|
|
|
|
2010-07-27 13:17:44 -06:00
|
|
|
forftanks.o: forf.h ctanks.h
|
2010-07-20 15:39:10 -06:00
|
|
|
forf.o: forf.c forf.h
|
|
|
|
ctanks.o: ctanks.h
|
2010-07-06 13:53:17 -06:00
|
|
|
|
2014-07-29 09:17:12 -06:00
|
|
|
%.html: %.html.m4 nav.html.inc
|
2010-07-22 18:08:55 -06:00
|
|
|
m4 $< > $@
|
|
|
|
|
2010-07-06 13:53:17 -06:00
|
|
|
clean:
|
2010-07-27 15:36:27 -06:00
|
|
|
rm -f *.o next-round round-*.html
|
2010-07-22 22:41:46 -06:00
|
|
|
rm -f $(BINARIES) $(HTML)
|