refactor Makefile.