Makefile changes; not sure why if is not being triggered correctly

fixing back to what I had before

removed i

Fixed the issue with using a variable