docs: def _ReadMakefileAm(self):
      """Reads Makefile.am to initialize the project information."""
      if not self.library_name:
        raise RuntimeError("Missing library name")
  
      file_object = open("Makefile.am", "rb")
      if not file_object:
        raise IOError("Unable to open: Makefile.am")
  
      found_subdirs = False
      for line in file_object.readlines():
        line = line.strip()
        if found_subdirs:
          library_name, _, _ = line.partition(b" ")
          if sys.version_info[0] >= 3:
            library_name = library_name.decode("ascii")
  
          self.include_directories.append(library_name)
  
          if library_name.startswith("lib"):
            self.library_names.append(library_name)
  
          if library_name == self.library_name:
            break
  
        elif line.startswith(b"SUBDIRS"):
          found_subdirs = True
  
      file_object.close()
  
      if not self.include_directories or not self.library_names:
        raise RuntimeError(
            "Unable to find include directories and library names in: "
            "Makefile.am")