generating tex files with Makefile