merge all files, generate merge files