refactoring Makefile