# $Header: Makefile,v 4.300 91/06/08 01:36:26 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/7/86
#
SRCS=	rcs.ms
MSRC=	rcs.man
MACROS=	-ms
TROFF=	ditroff

paper:	paper.out manpg.out
	lpr -n paper.out
	lpr -n manpg.out

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

manpg.out: ${MSRC}
	${TROFF} -man -t ${MSRC} > manpg.out

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

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