update makefile to accept var, fix syntax