makefile bug infinite loop