72 lines
2.6 KiB
Diff
72 lines
2.6 KiB
Diff
--- Makefile
|
|
+++ Makefile
|
|
@@ -4,7 +4,7 @@
|
|
# Copyright 1996, 1997, 1998, 1999, 2000, 2001 John Cowan
|
|
# Copyright 2002 Christiaan Keet
|
|
|
|
-# Please make sure DESTDIR, MANDIR, DEFAULTFONTDIR and
|
|
+# Please make sure BINDIR, MANDIR, DEFAULTFONTDIR and
|
|
# DEFAULTFONTFILE are defined to reflect the situation
|
|
# on your computer. See README for details.
|
|
|
|
@@ -15,15 +15,15 @@
|
|
CFLAGS = -g
|
|
|
|
# Where the executables should be put
|
|
-DESTDIR = /usr/local/bin
|
|
+BINDIR = /usr/games
|
|
|
|
# Where the man page should be put
|
|
-MANDIR = /usr/local/man/man6
|
|
+MANDIR = /usr/share/man/man6
|
|
|
|
# Where figlet will search first for fonts (the ".flf" files).
|
|
-DEFAULTFONTDIR = /usr/local/share/figlet
|
|
+DEFAULTFONTDIR = /usr/share/games/figlet/fonts
|
|
# Use this definition if you can't put things in /usr/local/share/figlet
|
|
-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).
|
|
@@ -52,11 +52,11 @@
|
|
rm -f *.o figlet chkfont
|
|
|
|
install: figlet chkfont
|
|
- mkdir -p $(DEFAULTFONTDIR)
|
|
- cp figlet $(DESTDIR)
|
|
- cp figlet.6 $(MANDIR)
|
|
- cp chkfont $(DESTDIR)
|
|
- cp figlist $(DESTDIR)
|
|
- cp showfigfonts $(DESTDIR)
|
|
- cp fonts/*.flf $(DEFAULTFONTDIR)
|
|
- cp fonts/*.flc $(DEFAULTFONTDIR)
|
|
+ mkdir -p $(DESTDIR)$(DEFAULTFONTDIR) $(DESTDIR)$(BINDIR) $(DESTDIR)$(MANDIR)
|
|
+ cp figlet $(DESTDIR)$(BINDIR)
|
|
+ cp figlet.6 $(DESTDIR)$(MANDIR)
|
|
+ cp chkfont $(DESTDIR)$(BINDIR)
|
|
+ cp figlist $(DESTDIR)$(BINDIR)
|
|
+ cp showfigfonts $(DESTDIR)$(BINDIR)
|
|
+ cp fonts/*.flf $(DESTDIR)$(DEFAULTFONTDIR)
|
|
+ cp fonts/*.flc $(DESTDIR)$(DEFAULTFONTDIR)
|
|
--- README
|
|
+++ README
|
|
@@ -90,13 +90,14 @@
|
|
nroff -man figlet.6 | more
|
|
|
|
(2) Do a complete installation. To do the this, set the variables
|
|
-DESTDIR and MANDIR in Makefile to the appropriate values. DESTDIR
|
|
+BINDIR and MANDIR in Makefile to the appropriate values. BINDIR
|
|
should be the full pathname of the directory in which the executable
|
|
files should be put (we recommend "/usr/games"); MANDIR should be the
|
|
full pathname of the directory in which the figlet man page should be
|
|
put, generally "/usr/man/man6". Once DEFAULTFONTDIR, DEFAULTFONTFILE,
|
|
-DESTDIR and MANDIR have been set, in the directory containing the FIGlet
|
|
-source, type "make install".
|
|
+BINDIR and MANDIR have been set, in the directory containing the FIGlet
|
|
+source, type "make install". You can relocate install objects into a
|
|
+staging area by "make DESTDIR=/tmp/figlet_staging_area install".
|
|
|
|
If space is a problem, the only files you absolutely must have to run
|
|
figlet are "figlet" (the executable) and at least one font (preferably
|