Add install target to Makefile

This commit is contained in:
Neale Pickett 2010-07-27 15:45:40 -06:00
parent 35394f1925
commit cefea35d5e
1 changed files with 11 additions and 0 deletions

View File

@ -1,10 +1,21 @@
BINARIES = forftanks designer.cgi BINARIES = forftanks designer.cgi
HTML = forf.html procs.html intro.html designer.html HTML = forf.html procs.html intro.html designer.html
WWW = dirtbags.css grunge.png designer.js figures.js tanks.js nav.html.inc
CFLAGS = -Wall CFLAGS = -Wall
all: $(BINARIES) $(HTML) all: $(BINARIES) $(HTML)
install:
install -d $(DESTDIR)/usr/bin
install run-tanks $(DESTDIR)/usr/bin
install forftanks $(DESTDIR)/usr/bin
install -d $(DESTDIR)/usr/lib/ctanks
install designer.cgi $(DESTDIR)/usr/lib/ctanks
install $(HTML) $(DESTDIR)/usr/lib/ctanks
install $(WWW) $(DESTDIR)/usr/lib/ctanks
forftanks: forftanks.o ctanks.o forf.o forftanks: forftanks.o ctanks.o forf.o
forftanks: LDFLAGS = -lm forftanks: LDFLAGS = -lm