blob: e9ac71517cef008ca949c089e90d1fae717bb960 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
--- 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
|