parameters: (fh)
docstring: Read the file handler containing a dep makefile (simple makefile only
      containing dependencies) and returns an iterator of the corresponding Rules
      it contains. Ignores removal guard rules.
docstring_summary: Read the file handler containing a dep makefile (simple makefile only
      containing dependencies) and returns an iterator of the corresponding Rules
      it contains. Ignores removal guard rules.
docstring_tokens: Read the file handler containing a dep makefile ( simple makefile only containing dependencies ) and returns an iterator of the corresponding Rules it contains . Ignores removal guard rules .
function: def read_dep_makefile(fh):
      """
      Read the file handler containing a dep makefile (simple makefile only
      containing dependencies) and returns an iterator of the corresponding Rules
      it contains. Ignores removal guard rules.
      """
  
      rule = ''
      for line in fh.readlines():
          assert not line.startswith('\t')
          line = line.strip()
          if line.endswith('\\'):
              rule += line[:-1]
          else:
              rule += line
              split_rule = _depfilesplitter.split(rule, 1)
              if len(split_rule) > 1 and split_rule[1].strip():
                  yield Rule(split_rule[0].strip().split()) \
                        .add_dependencies(split_rule[1].strip().split())
              rule = ''
  
      if rule:
          raise Exception('Makefile finishes with a backslash. Expected more input.')
function_tokens: def read_dep_makefile ( fh ) : rule = '' for line in fh . readlines ( ) : assert not line . startswith ( '\t' ) line = line . strip ( ) if line . endswith ( '\\' ) : rule += line [ : - 1 ] else : rule += line split_rule = _depfilesplitter . split ( rule , 1 ) if len ( split_rule ) > 1 and split_rule [ 1 ] . strip ( ) : yield Rule ( split_rule [ 0 ] . strip ( ) . split ( ) ) . add_dependencies ( split_rule [ 1 ] . strip ( ) . split ( ) ) rule = '' if rule : raise Exception ( 'Makefile finishes with a backslash. Expected more input.' )