# Generic make file for LaTeX: requires GNU make TEXFILE = folien.tex # TEXFILE = sample.tex # TEXFILE = hyperlinks.tex # TEXFILE = titlepage.tex # TEXFILE = overlays1.tex # TEXFILE = overlays2.tex # TEXFILE = graphics.tex # TEXFILE = prosper-tour.tex # TEXFILE = hyper.tex .PHONY: dvi ps pdf clean pdf: $(TEXFILE:.tex=.pdf) ps: $(TEXFILE:.tex=.ps) dvi: $(TEXFILE:.tex=.dvi) %.dvi: %.tex ( \ \latex $<; \ while \grep -q "Rerun to get cross-references right." $(<:.tex=.log); \ do \ \latex $<; \ done \ ) %.ps: %.dvi \dvips -q $< -o %.pdf: %.ps \ps2pdf -dPDFSETTINGS=/prepress $< acroread $@ clean: @\rm -f \ $(TEXFILE:.tex=.aux) \ $(TEXFILE:.tex=.log) \ $(TEXFILE:.tex=.out) \ $(TEXFILE:.tex=.dvi) \ $(TEXFILE:.tex=.pdf) \ $(TEXFILE:.tex=.ps)