Add makfile type and manage session directory.