makefile to template