--- Makefile.orig	Wed Dec 15 03:57:55 1999
+++ Makefile	Wed Dec 15 04:03:27 1999
@@ -9,19 +9,20 @@
 # Don't change this even if your shell is different. The only reason
 # for changing this is if sh is not in the same place.
 SHELL = /bin/sh
-CC = gcc
-CFLAGS = -g
+CC ?= gcc
+CFLAGS ?= -g
 
 # Where the executables should be put
-DESTDIR = /usr/games
+PREFIX ?= /usr/local
+DESTDIR = ${PREFIX}/bin
 
 # Where the man page should be put
-MANDIR = /usr/man/man6
+MANDIR = ${PREFIX}/man/man6
 
 # Where figlet will search first for fonts (the ".flf" files).
-DEFAULTFONTDIR = $(DESTDIR)/lib/figlet.dir
+DEFAULTFONTDIR = ${PREFIX}/share/figlet
 # Use this definition if you can't put things in /usr/games
-DEFAULTFONTDIR = fonts
+#DEFAULTFONTDIR = fonts
 
 # The filename of the font to be used if no other is specified
 #   (standard.flf is recommended, but any other can be used).
@@ -50,11 +51,11 @@
 	rm -f *.o figlet chkfont
 
 install: figlet chkfont
-	mkdir $(DEFAULTFONTDIR)
-	cp figlet $(DESTDIR)
-	cp chkfont $(DESTDIR)
-	cp figlist $(DESTDIR)
-	cp showfigfonts $(DESTDIR)
-	cp fonts/*.flf $(DEFAULTFONTDIR)
-	cp fonts/*.flc $(DEFAULTFONTDIR)
-	cp figlet.6 $(MANDIR)
+	mkdir -p -m 555 $(DEFAULTFONTDIR)
+	install -c -m 555 figlet $(DESTDIR)
+	install -c -m 555 chkfont $(DESTDIR)
+	install -c -m 555 figlist $(DESTDIR)
+	install -c -m 555 showfigfonts $(DESTDIR)
+	install -c -m 444 fonts/*.flf $(DEFAULTFONTDIR)
+	install -c -m 444 fonts/*.flc $(DEFAULTFONTDIR)
+	install -c -m 444 figlet.6 $(MANDIR)
