Update template makefiles