Fix Makefile.tpl for projects with subdirectories

-$@ missing for gcc invocations