rebuild Makefile step by step