-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
34 lines (25 loc) · 864 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
BINARIES = forftanks designer.cgi
HTML = forf.html procs.html intro.html designer.html chord.html
WWW = style.css grunge.png designer.js figures.js tanks.js nav.html.inc
CFLAGS = -Wall
all: $(BINARIES) $(HTML)
install:
install -d $(DESTDIR)/usr/bin
install run-tanks $(DESTDIR)/usr/bin
install forftanks $(DESTDIR)/usr/bin
install $(SCRIPTS) $(DESTDIR)/usr/bin
install -d $(DESTDIR)/usr/lib/tanks
install designer.cgi $(DESTDIR)/usr/lib/tanks
install $(HTML) $(DESTDIR)/usr/lib/tanks
install $(WWW) $(DESTDIR)/usr/lib/tanks
cp -r examples $(DESTDIR)/usr/lib/tanks/examples
forftanks: forftanks.o ctanks.o forf.o
forftanks: LDFLAGS = -lm
forftanks.o: forf.h ctanks.h
forf.o: forf.c forf.h
ctanks.o: ctanks.h
%.html: %.html.m4
m4 $< > $@
clean:
rm -f *.o next-round round-*.html round-*.json results-*.txt current.html
rm -f $(BINARIES) $(HTML)