fix makefile install for loop