tweak makefile to correctly export TEX vars