Refactor Makefile and source directories.