make documentation build into ps files. this works, mostly...

This commit is contained in:
cgd 1993-06-09 22:00:27 +00:00
parent 1e14b562af
commit d2f1cebe30
8 changed files with 54 additions and 38 deletions

View File

@ -1,17 +1,19 @@
# @(#)Makefile 6.3 (Berkeley) 6/30/90
DIR= usd/15.vi
DIR= 15.vi
SRCS= vi.in vi.chars
MACROS= -msU
MACROS= -ms
CLEANFILES+=summary.* viapwh.*
paper.${PRINTER}: ${SRCS} summary.${PRINTER} viapwh.${PRINTER}
.include <bsd.doc.mk>
${DOC}.${PRINTER}: ${SRCS} ${DOC}.summary.${PRINTER} ${DOC}.viapwh.${PRINTER}
${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
summary.${PRINTER}: vi.summary
${DOC}.summary.${PRINTER}: vi.summary
${TBL} vi.summary | ${ROFF} > ${.TARGET}
viapwh.${PRINTER}: vi.apwh.ms
${ROFF} vi.viapwh > ${.TARGET}
.include <bsd.doc.mk>
${DOC}.viapwh.${PRINTER}: vi.apwh.ms
${ROFF} vi.apwh.ms > ${.TARGET}

View File

@ -1,14 +1,16 @@
# @(#)Makefile 6.2 (Berkeley) 6/30/90
DIR= usd/16.ex
DOC= 16.ex
SRCS= ex.rm
MACROS= -msU
MACROS= -ms
CLEANFILES=summary.*
paper.${PRINTER}: ${SRCS} summary.${PRINTER}
.include <bsd.doc.mk>
${DOC}.${PRINTER}: ${SRCS} ${DOC}.summary.${PRINTER}
${ROFF} ${SRCS} > ${.TARGET}
summary.${PRINTER}: ex.summary
${DOC}.summary.${PRINTER}: ex.summary
${TBL} ex.summary | ${ROFF} > ${.TARGET}
.include <bsd.doc.mk>

View File

@ -1,10 +1,12 @@
# @(#)Makefile 6.2 (Berkeley) 6/30/90
DIR= usd/21.msdiffs
SRCS= ms.diffs
MACROS= -msU
DOC= 21.msdiffs
paper.${PRINTER}: ${SRCS}
${ROFF} ${SRCS} > ${.TARGET}
SRCS= ms.diffs
MACROS= -ms
.include <bsd.doc.mk>
${DOC}.${PRINTER}: ${SRCS}
${ROFF} ${SRCS} > ${.TARGET}

View File

@ -1,10 +1,12 @@
# @(#)Makefile 6.4 (Berkeley) 6/30/90
DIR= usd/22.memacros
DOC= 22.memacros
SRCS= intro.me
MACROS= -me
paper.${PRINTER}: ${SRCS}
${ROFF} ${SRCS} > ${.TARGET}
.include <bsd.doc.mk>
${DOC}.${PRINTER}: ${SRCS}
${ROFF} ${SRCS} > ${.TARGET}

View File

@ -1,10 +1,12 @@
# @(#)Makefile 6.4 (Berkeley) 6/30/90
DIR= usd/23.meref
DOC= 23.meref
SRCS= ref.me
MACROS= -me
paper.${PRINTER}: ${SRCS}
${ROFF} ${SRCS} > ${.TARGET}
.include <bsd.doc.mk>
${DOC}.${PRINTER}: ${SRCS}
${ROFF} ${SRCS} > ${.TARGET}

View File

@ -1,10 +1,12 @@
# @(#)Makefile 6.3 (Berkeley) 6/30/90
DIR= usd/33.rogue
DOC= 33.rogue
SRCS= rogue.me
MACROS= -me
paper.${PRINTER}: ${SRCS}
${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
.include <bsd.doc.mk>
${DOC}.${PRINTER}: ${SRCS}
${TBL} ${SRCS} | ${ROFF} > ${.TARGET}

View File

@ -1,10 +1,12 @@
# @(#)Makefile 6.2 (Berkeley) 6/30/90
DIR= usd/34.trek
DOC= 34.trek
SRCS= trek.me
MACROS= -me
paper.${PRINTER}: ${SRCS}
${TBL} ${SRCS} | ${ROFF} > ${.TARGET}
.include <bsd.doc.mk>
${DOC}.${PRINTER}: ${SRCS}
${TBL} ${SRCS} | ${ROFF} > ${.TARGET}

View File

@ -1,23 +1,25 @@
# @(#)bsd.doc.mk 5.3 (Berkeley) 1/2/91
PRINTER=ps
PRINTER?= ps
BIB?= bib
EQN?= eqn -P${PRINTER}
GREMLIN?= grn -P${PRINTER}
EQN?= eqn
GREMLIN?= grn
GRIND?= vgrind -f
INDXBIB?= indxbib
PIC?= pic -P${PRINTER}
PIC?= pic
REFER?= refer
ROFF?= troff -t ${MACROS} ${PAGES} -P${PRINTER}
ROFF?= groff -T${PRINTER} ${MACROS} ${PAGES}
SOELIM?= soelim
TBL?= tbl -P${PRINTER}
TBL?= tbl
.PATH: ${.CURDIR}
all: ${DOC}.${PRINTER}
.if !target(print)
print: paper.${PRINTER}
lpr -P${PRINTER} paper.${PRINTER}
print: ${DOC}.${PRINTER}
lpr -P${PRINTER} ${DOC}.${PRINTER}
.endif
.if !target(obj)
@ -25,7 +27,7 @@ obj:
.endif
clean cleandir:
rm -f paper.* [eE]rrs mklog ${CLEANFILES}
rm -f ${DOC}.* [eE]rrs mklog ${CLEANFILES}
rm -rf obj
FILES?= ${SRCS}
@ -42,7 +44,7 @@ install:
Makefile ${FILES} ${EXTRA} ${DESTDIR}${BINDIR}/${DIR}
spell: ${SRCS}
spell ${SRCS} | sort | comm -23 - spell.ok > paper.spell
spell ${SRCS} | sort | comm -23 - spell.ok > ${DOC}.spell
BINDIR?= /usr/share/doc
BINGRP?= bin