0291713240
$PAGER overrides. (Requested by: dcs) One patch per modified file. One modified file per patch. Honor CC, CFLAGS. Use BSD_INSTALL_FOO and, as a side effect, install with our customary ownerships. No response from: maintainer
41 lines
1019 B
Plaintext
41 lines
1019 B
Plaintext
--- Makefile.orig Thu Mar 11 06:00:00 1993
|
|
+++ Makefile Mon Oct 16 11:41:01 2000
|
|
@@ -1,4 +1,5 @@
|
|
# Makefile for dvi2tty and disdvi 23/01/89 M.J.E. Mol
|
|
+# Modified by Joel Sutton <suttonj@interconnect.com.au> 8th Feb, 1997
|
|
#
|
|
# For BSD Unix use the following CFLAGS definition
|
|
# CFLAGS = -Dstrchr=index
|
|
@@ -6,17 +7,26 @@
|
|
# This Makefile does not work for MSDOS. Make your
|
|
# own one, or compile by hand.
|
|
#
|
|
-CFLAGS =
|
|
+
|
|
+PREFIX?= /usr/local
|
|
+BINDIR= ${PREFIX}/bin/
|
|
+MANDIR= ${PREFIX}/man/man
|
|
|
|
all: dvi2tty disdvi
|
|
|
|
-dvi2tty:dvi2tty.o dvistuff.o
|
|
- cc -o dvi2tty dvi2tty.o dvistuff.o
|
|
+dvi2tty: dvi2tty.o dvistuff.o
|
|
+ $(CC) $(CFLAGS) -o dvi2tty dvi2tty.o dvistuff.o
|
|
|
|
-disdvi:disdvi.c commands.h
|
|
- cc -o disdvi disdvi.o
|
|
+disdvi: disdvi.c commands.h
|
|
+ $(CC) $(CFLAGS) -o disdvi disdvi.c
|
|
|
|
dvi2tty.o: dvi2tty.c dvi2tty.h
|
|
|
|
dvistuff.o: dvistuff.c dvi2tty.h commands.h
|
|
|
|
+install: all
|
|
+ ${BSD_INSTALL_PROGRAM} dvi2tty ${BINDIR}
|
|
+ ${BSD_INSTALL_MAN} dvi2tty.1 ${MANDIR}1/
|
|
+
|
|
+clean:
|
|
+ rm -f dvi2tty disdvi *.o
|