--- vtprint-2.0.2.orig/Makefile
+++ vtprint-2.0.2/Makefile
@@ -37,7 +37,7 @@
# Compiler & compile flags
CC = gcc
-COMPILE_OPTS = -O -g
+#COMPILE_OPTS = -O -g
LINK_OPTS =
# Default device name
@@ -46,7 +46,8 @@
# Library file (vtprintcap)
-LIBFILE = /usr/local/lib/vtprint/vtprintcap
+#LIBFILE = /usr/local/lib/vtprint/vtprintcap
+LIBFILE = /etc/vtprintcap
# Termcap location (man page reference)
@@ -64,10 +65,10 @@
# System installation directories
-MAN1_DIR = /usr/local/man/man$(MAN1_SECT)
-MAN5_DIR = /usr/local/man/man$(MAN5_SECT)
-BIN_DIR = /usr/local/bin
-LIB_DIR = /usr/local/lib/vtprint
+MAN1_DIR = $(DESTDIR)/usr/share/man/man$(MAN1_SECT)
+MAN5_DIR = $(DESTDIR)/usr/share/man/man$(MAN5_SECT)
+BIN_DIR = $(DESTDIR)/usr/bin
+LIB_DIR = $(DESTDIR)/etc
# User directories (for "make userinstall")
@@ -98,7 +99,7 @@
VER_MO = October
VER_DY = 25
VER_YR = 1994
-VERSION_DT = $(VER_MO)\ $(VER_DY)\,\ $(VER_YR)
+VERSION_DT = $(VER_MO)-$(VER_DY)-$(VER_YR)
# Consolidated defines
@@ -107,7 +108,7 @@
# Compiler options & flags
-CFLAGS = $(DEFINES) $(COMPILE_OPTS)
+CFLAGS += $(DEFINES) $(COMPILE_OPTS)
LDFLAGS = $(LINK_OPTS)
TARGET = vtprint
@@ -150,16 +151,16 @@
man: vtprint.man vtprint.ps vtprintcap.man vtprintcap.ps\
vtprtoff.man vtprtoff.ps
- echo Are You a god? Don't forget to make woman also!
+ echo "Are You a god? Don't forget to make woman also!"
woman:
echo ... just to be politically correct, I suppose??
FAQ: FAQ.ms FAQ.macros
- groff -Tascii -mgs FAQ.ms > FAQ
+ groff -Tascii -ms FAQ.ms > FAQ
FAQ.ps: FAQ.ms FAQ.macros
- groff -Tps -mgs FAQ.ms > FAQ.ps
+ groff -Tps -ms FAQ.ms > FAQ.ps
install.man:
./install -d -m 755 $(MAN1_DIR)