EQN	=	eqn
FILES	= 	man.ms
GRN	=	/usr/local/ditroff/grn -Pps
GRNFILES =	
LPR	=	lpr -Pps127 -n
NROFF 	=	nroff -ms
TROFF 	=	/usr/local/ditroff/troff -ms -Pps -t
TBL	= 	tbl	


all:		coversheet man

coversheet:	coversheet.dit
		${LPR} coversheet.dit

coversheet.dit:	coversheet.ms
		${TROFF} coversheet.ms > coversheet.dit

man:		man.dit
		${LPR} man.dit

man.dit:	${FILES}
		cat ${FILES} | ${GRN} | ${EQN} | ${TROFF} > man.dit

nroff.out:	${FILES}
		cat ${FILES} | ${EQN} | ${TBL} | ${NROFF} > nroff.out

preview:	man.dit
		xproof man.dit

