Latexmk completely automates the process of generating a LaTeX document. Essentially, it is a highly specialized cousin of the general make utility. Given the source files for a document, latexmk issues the appropriate sequence of commands to generate a .dvi, .ps, .pdf or hardcopy version of the document. It can also be set to run continuously with a {previewer;} the latex program, etc, are rerun whenever one of the source files is modified.

WWW: https://www.cantab.net/users/johncollins/latexmk/
