Fixed the doc macros to call troff, eqn,and tbl instead of ditroff,

deqn, and dtbl.
Fixed make clean to remove the man pages (Bill fixed this in the distribution,
but not in the original source)
Changed install to leave the original file around, by using 'cp' instead of
'mv'. "install -c ..."
This commit is contained in:
nate 1993-03-27 12:17:32 +00:00
parent fd0d6902b6
commit 5fd6295611
2 changed files with 23 additions and 6 deletions

View File

@ -1,17 +1,22 @@
# @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
PRINTER=psc
PRINTER=ps
# Why d'command'?
#EQN?= deqn -P${PRINTER}
#TBL?= dtbl -P${PRINTER}
#ROFF?= ditroff -t ${MACROS} ${PAGES} -P${PRINTER}
BIB?= bib
EQN?= deqn -P${PRINTER}
EQN?= eqn -P${PRINTER}
GREMLIN?= grn -P${PRINTER}
GRIND?= vgrind -f
INDXBIB?= indxbib
PIC?= pic -P${PRINTER}
REFER?= refer
ROFF?= ditroff -t ${MACROS} ${PAGES} -P${PRINTER}
ROFF?= ntroff -t ${MACROS} ${PAGES} -P${PRINTER}
SOELIM?= soelim
TBL?= dtbl -P${PRINTER}
TBL?= tbl -P${PRINTER}
.PATH: ${.CURDIR}

View File

@ -17,6 +17,8 @@ BINGRP?= bin
BINOWN?= bin
BINMODE?= 555
LIBCRT0?= /usr/lib/crt0.o
LIBC?= /usr/lib/libc.a
LIBCOMPAT?= /usr/lib/libcompat.a
LIBCURSES?= /usr/lib/libcurses.a
@ -47,9 +49,18 @@ CLEANFILES+=strings
OBJS+= ${SRCS:R:S/$/.o/g}
.if defined(LDONLY)
${PROG}: ${LIBCRT0} ${LIBC} ${OBJS} ${DPADD}
${LD} ${LDFLAGS} -o ${.TARGET} ${LIBCRT0} ${OBJS} ${LIBC} ${LDADD}
.else defined(LDONLY)
${PROG}: ${OBJS} ${LIBC} ${DPADD}
${CC} ${LDFLAGS} -o ${.TARGET} ${OBJS} ${LDADD}
.endif
.else defined(PROG)
SRCS= ${PROG}.c
@ -88,11 +99,12 @@ all: ${PROG} ${MANALL} _PROGSUBDIR
.if !target(clean)
clean: _PROGSUBDIR
rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES}
rm -f .depend ${MANALL}
.endif
.if !target(cleandir)
cleandir: _PROGSUBDIR
rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES}
rm -f a.out [Ee]rrs mklog core ${PROG} ${OBJS} ${CLEANFILES} ${MANALL}
rm -f .depend ${MANALL}
.endif
@ -115,7 +127,7 @@ afterinstall:
realinstall: _PROGSUBDIR
.if defined(PROG)
install ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
install -c ${STRIP} -o ${BINOWN} -g ${BINGRP} -m ${BINMODE} \
${PROG} ${DESTDIR}${BINDIR}
.endif
.if defined(HIDEGAME)