# $Header: Makefile,v 4.300 91/06/08 01:49:09 root Rel41 $ SONY;
#
# Copyright (c) 1986 Regents of the University of California.
# All rights reserved.  The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
#	@(#)Makefile	6.1 (Berkeley) 5/27/86
#
SRCS=	edittut.ms
#MACROS=	-msU
MACROS=	-ms
TBL=	tbl
TROFF=	ditroff

paper:	paper.out
	lpr -n paper.out

xprev:	paper.out
	xprev paper.out

paper.out: ${SRCS}
	${TBL} ${SRCS} | ${TROFF} ${MACROS} -t > paper.out

clean:
	rm -f paper.[PT]* *.spell errs Errs make.out paper.out

spell:	${SRCS}
	@for i in ${SRCS}; do \
		echo $$i; spell $$i | sort | comm -23 - spell.ok > $$i.spell; \
	done

# index for versatec is different from the one in edit.tut
# because the fonts are different and entries reference page
# rather than section numbers.  if you have a typesetter
# you should just use the index in edit.tut, and ignore editvindex.

editvindex:
	${TROFF} ${MACROS} -n22 edit.vindex
