update beamer makefile to the latex one