# LATEX     = /usr/local/bin/latex
# DVIPS	  = /usr/local/bin/dvips
XDVIFLAGS = -s 3 -expert -rv +sw -geometry 860x870 -topmargin 1.5
PRINTER	  = myprinter


PREAMBLE  = defs.tex
CHAPTERS  = introduction.tex
FIGURES	  = mesh.eps

###
### might be like:
### CHAPTERS = introduction.tex future-work.tex abstract.tex 
###

TEXFILES = $(CHAPTERS) $(PREAMBLE) $(FIGURES)

###
### by default, just bring the .dvi file up to date.
###

default:    	thesis.dvi

thesis.dvi:	thesis.tex $(CHAPTERS)
		latex thesis.tex
		latex thesis.tex
###
### use xdvi to view, dvipr to print.
###

preview:	thesis.dvi
		xdvi $(XDVIFLAGS) thesis.dvi

hardcopy:	thesis.dvi
		dvipr -P$(PRINTER) thesis.dvi; lpq -P$(PRINTER)

###
###  make clean 
### 

clean:
		rm -f thesis.aux thesis.lof thesis.lot thesis.toc \
		      thesis.dvi thesis.log *~
