Use Makefile properly with dependencies for LaTeX.