def _DoesTargetDependOn(target):
  if target.match_status == MATCH_STATUS_DOESNT_MATCH:
    return False
  if target.match_status == MATCH_STATUS_MATCHES or \
      target.match_status == MATCH_STATUS_MATCHES_BY_DEPENDENCY:
    return True
  for dep in target.deps:
    if _DoesTargetDependOn(dep):
      target.match_status = MATCH_STATUS_MATCHES_BY_DEPENDENCY
      return True
  target.match_status = MATCH_STATUS_DOESNT_MATCH
  return False
Returns true if |target| or any of its dependencies matches the supplied
dataset/ETHPy150Open pyokagan/gyp/pylib/gyp/generator/analyzer.py/_DoesTargetDependOn