add makefile to each directory.