changed makefiles to use shell variables. TODO: get other examples right for new syntax