latex=latex bibtex=bibtex dvips=dvips pdflatex=pdflatex these=these .PHONY: all all: ps pdf .PHONY: ps pdf ps: $(these:%=%.ps) pdf: $(these:%=%.pdf) $(these:%=%.pdf): %.pdf: %.tex $(pdflatex) $* $(bibtex) $* $(pdflatex) $* $(these:%=%.ps): %.ps: %.tex $(latex) $* $(bibtex) $* $(latex) $* &&\ $(dvips) $*.dvi -o $@