I have developed a GNU Makefile for use with LaTeX documents. It runs LaTeX multiple times to try to resolve undefined references, runs bibtex and makeindex only if it detects that it is necessary to. It also hides all of LaTeX's verbose output except for warnings that occured in the final run of LaTeX. If an error occurs, all of the output from LaTeX is printed to the screen. All of the output that is hidden is stored as log files in a directory named "tmp". It also can use dvips and ps2pdf to create PostScript and PDF output.

Download: