######################################################################### 
#									# 
#   File: scorpion/doc/errata/Makefile 
#				 					# 
#   Copyright (C) 1991 Richard Snodgrass
#									# 
#   The Scorpion System is free software in the public domain; you can  # 
#   redistribute it and/or modify it as you wish. We ask that you 	# 
#   retain credits referencing the University of Arizona and that you	# 
#   identify any changes you make.					# 
#									# 
#   Report problems to scorpion-project@cs.arizona.edu			# 
#   Direct all inquiries to:	The Scorpion Project			# 
#				Department of Computer Science		# 
#				Gould-Simpson Building			# 
#				University of Arizona			# 
#				Tucson, AZ 85721			# 
#				U.S.A.					# 
#									# 
#   Revision Log:							# 
#	$Log:$ 
#									# 
#   Edit Log:								# 
#     Mar 20 1991 (rts) Created.
#									# 
######################################################################### 

# If the rail program has been installed (see the README for details),
# then uncomment the lines marked NEED RAIL
LATEX=latex
TEX=/usr/local/tex
PRINT=/usr/ucb/lpr -Plw0 
PRINTDVI=/usr/ucb/lpr -Plw0 -d
RM=rm -f 
TOUCH=touch -c

System: document.dvi cover.dvi

Print: document.dvi cover.dvi
	$(PRINTDVI) document.dvi
	$(PRINTDVI) cover.dvi

cover.dvi: cover.tex
	$(TEX) cover.tex

document.dvi:	document.tex document.rao
	$(LATEX) document.tex
	# do it twice for good measure
	$(LATEX) document.tex

document.rao:	document.tex
	# don't use previous document.rao
#	$(RM) document.rao		NEED RAIL
	$(TOUCH) document.rao
	# create document.rai
#	$(LATEX) document.tex		NEED RAIL
	# break up long lines, so that latex doesn't complain
#	$(SED) -f sedfile document.rai > document.rai2		NEED RAIL
#	$(RM) document.rai		NEED RAIL
#	$(MV) document.rai2 document.rai	NEED RAIL
	# create document.rao
#	$(RAIL) document		NEED RAIL

retex:
	$(TOUCH) document.tex
	make

Clean:
	$(RM) *.dvi *.ps *.aux *.rai *.log
#	$(RM) *.rao			NEED RAIL
