Added a loop to makefile, more flexible