Instead of plugging latex directly into a Makefile or tup, use such a wrapper.
It seems that latexmk could be such a script: http://mirror.unl.edu/ctan/support/latexmk/README
Instead of plugging latex directly into a Makefile or tup, use such a wrapper.
It seems that latexmk could be such a script: http://mirror.unl.edu/ctan/support/latexmk/README