all:	main 

main:	main.ps main.pdf

TEX-FILES =	\
	contents.tex		main.tex	\
	lessons.tex		tutorial.tex	\
	intro.tex		refmanual.tex	\
	projectplan.tex         architecture.tex \
	testing.tex            grammar.tex      \
        source.tex              

main.dvi: ${TEX-FILES}
	latex main

main.pdf: main.ps
	ps2pdf main.ps main.pdf

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

clean:
	rm -f *.aux *.bbl *.blg *.log *.dvi *.bak *~ main.ps *.pdf
