SOURCES = tutorial.tex \
../chap01.tex ../chap02.tex ../chap03.tex ../chap04.tex ../chap05.tex \
../chap06.tex ../chap07.tex ../chap08.tex ../chap09.tex ../chap10.tex \
../solution.tex


all: tutorial.ps html

tutorial.aux: $(SOURCES)
	latex tutorial.tex

tutorial.bbl: tutorial.aux
	bibtex tutorial

tutorial.dvi: $(SOURCES) tutorial.bbl
	latex tutorial.tex
	latex tutorial.tex

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

html:
	latex2html -html_version 3 -split 1 -show_section_numbers \
	-bottom_navigation -t "Introduction to Object-Oriented Programming" \
	tutorial.tex

clean:
	/bin/rm -f *ps *dvi *aux *log *blg *bbl *toc

