all: main.pdf images: $(MAKE) -C images all main.pdf: main.tex images pdflatex main.tex makeindex -c -s main.ist main.idx bibtex main.aux pdflatex main.tex pdflatex main.tex clean: $(MAKE) -C images clean rm -f main.pdf *.aux *.bbl *.blg *.idx *.log *.lof *.ind *.ilg *.out *.toc *.backup *~ archive: main.pdf cp main.pdf thesis-`date +%Y-%m-%d-%Hh%M`.pdf .PHONY: images clean