Makefile: Use same build rule for all targets

Minor refactor of Makefile to massively reduce code duplication. Should help keep your build system neat and tidy if you ever need to change the way you're compiling the LaTeX sources.