update make file with template compilation