tanks/Makefile

41 lines
994 B
Makefile
Raw Normal View History

2014-07-28 16:32:25 -06:00
BINARIES = forftanks upload.cgi
HTML = forf.html procs.html intro.html designer.html debugger.html
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
install: $(BINARIES) $(HTML)
2018-08-07 12:21:52 -06:00
install -d $(DESTDIR)/bin
install go.sh $(DESTDIR)/bin
2018-08-07 12:21:52 -06:00
install round.sh $(DESTDIR)/bin
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
install upload.cgi $(DESTDIR)/www
install --mode=0644 $(HTML) $(DESTDIR)/www
install --mode=0644 $(WWW) $(DESTDIR)/www
2018-08-07 12:21:52 -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
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)