######################################################################### 
#									# 
#   File: scorpion/doc/idlviewimp/Makefile 
#				 					# 
#   Copyright (C) 1991 Hasnain Karampurwala
#									# 
#   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:								# 
#	28 March 1991 <hkaram> Created.
#									# 
######################################################################### 

LATEX=/usr/local/latex
TEX=/usr/local/tex
PRINT=/usr/ucb/lpr -Plw0
PRINTDVI=/usr/ucb/lpr -Plw0 -d
RM=rm -f
XPR=xpr -dec ps
TOUCH=/usr/bin/touch -c

System: cover.dvi document.dvi figures

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

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

figures: fig41.ps fig42.ps
	$(TOUCH) fig41.ps fig42.ps	# in case $(XPR) is not available
#	$(XPR) fig41.xwd > fig41.ps
#	$(XPR) fig42.xwd > fig42.ps

document.dvi: document.tex document.sty abstract.tex ack.tex \
	appendixa.tex appendixb.tex chap1.tex chap2.tex chap3.tex \
	chap4.tex chap5.tex chap6.tex chap7.tex 
	$(LATEX) document.tex
	$(LATEX) document.tex


Clean:	
# don't remove *.ps, in case $(XPR) is not available
	$(RM) *.log *.out *~ *.dvi *.nroff *.toc *.aux *.lof *.lot
