#
# Copyright (c) 1985 Regents of the University of California.
# All rights reserved.  The Berkeley software License Agreement
# specifies the terms and conditions for redistribution.
#
#	@(#)Makefile	1.2 (Berkeley) 11/30/85
#
TYPE=	-n
SRCS=	0.t 1.t 2.t 3.t 4.t 5.t 6.t 7.t
OBJS=	perf.t appendix.t
FMTR1= psroff -t
FMTR2= nroff
GRIND=	vgrind


PS:	${OBJS}
	${FMTR1} -ms -t ${OBJS} > sysperf.PS

screen:	${OBJS
	${FMTR2} -ms ${OBJS} > sysperf.text

perf.t:	${SRCS}
	tbl ${SRCS} | eqn > perf.t

appendix.t:	a1.t a2.t
	${GRIND} -f a1.t |  awk '/\.\(\)/{ cnt = 2 } \
	   { if (cnt) cnt -= 1; else print $$0; } ' > appendix.t
	${GRIND} -f -lcsh a2.t |  awk '/\.\(\)/{ cnt = 2 } \
	   { if (cnt) cnt -= 1; else print $$0; } ' >> appendix.t

clean:
	rm -f perf ${OBJS}


