improve makefile_tpl