#Makefile to make reports

.PHONY: report clean

tex = main.tex abstract.tex ack.tex appendix.tex conclusions.tex design.tex implementation.tex introduction.tex related.tex results.tex
bib = main.bib
figs = figs/machines.eps
graphs = graphs/graph1.ps graphs/graph2.ps

all = $(tex)
all += $(figs)
all += $(graphs)

all:		main.pdf

main.pdf:	main.ps
		ps2pdf main.ps
		ln -s main.pdf `whoami`-"752.pdf"

main.ps:	main.dvi
		dvips -o main.ps main.dvi

main.dvi:	main.bbl $(all)
		latex main.tex; latex main.tex

main.bbl:	main.bib
		latex main.tex; bibtex main

view:		main.ps
		gv main.ps


$(all):


clean:
	rm -f *~ *.bbl *.lof *.lot *.log *.toc *.blg *.dvi *.aux
