#
#	Title:		Makefile for Zephyr document.
#	Author:		Tony Della Fera, DEC
#	Created:	June 4, 1987
#
#	$Header: Makefile,v 1.1 88/12/02 09:53:42 jtkohl Exp $
#	$Source: /mit/zephyr/doc/techplan/RCS/Makefile,v $
#	$Author: jtkohl $
#	$Revision: 1.1 $
#

#
# Control Variables
#

LPR= lpr
LPRFLAGS= 

#
# File Variables
#

MSS=		titlepage.mss \
		intro.mss \
		overview.mss \
		protocol.mss \
		server.mss \
		hostmanager.mss \
		lib.mss \
		windowgram.mss \
		ack.mss \
		ref.mss

CHAPTERS=	titlepage.PS \
		intro.PS \
		overview.PS \
		protocol.PS \
		server.PS \
		hostmanager.PS \
		lib.PS \
		windowgram.PS \
		ack.PS \
		ref.PS

#
# Dependency Rules
#

.SUFFIXES:	.mss .PS

all:		zephyr.PS

.mss.PS:
	-rm -f $*.PS $*.otl $*.err
	scribe $*.mss
#	-mv $*.PS $*_old.PS
#	-psdraft -s "DRAFT" $*_old.PS > $*.PS
	-chmod 664 $*.PS

zephyr.PS:	zephyr.mss ${MSS}
	make force

force:
	-rm -f zephyr.PS zephyr.otl zephyr.err
	scribe zephyr.mss
#	-rm -f zephyr_old.PS
#	-mv zephyr.PS zephyr_old.PS
#	-psdraft -s "DRAFT" zephyr_old.PS > zephyr.PS

chapters:	${CHAPTERS}

paper:
	${LPR} ${LPRFLAGS} zephyr.PS

chapter-paper:
	${LPR} ${LPRFLAGS} ${CHAPTERS}

protect:
	-@chmod 664 *.PS *.aux *.err *.otl

rlog:
	-@rlog -h RCS/*,v

ident:
	-@ident README Makefile *.mss *.bib *.PS

find-locks:
	-@ident README Makefile *.mss *.bib *.PS | grep Locked | uniq

clean:
	rm -f a.out core *.s *.o *~ *~* *.err *.bak
	rm -f *.PS *.aux *.otl

tidy:
	rm -f a.out core *.s *.o *~ *~* *.err
	rm -f *.otl

