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

all:		coversheet spe

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

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

spe:		spe.dit
		${LPR} spe.dit

spe.dit:	${FILES} ${GRNFILES}
		cat ${FILES} | ${GRN} | ${TBL} | ${EQN} | ${TROFF} > spe.dit

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

preview:	spe.dit
		xproof spe.dit

