flatex added to makefile and generated flatened tex file