def target_outdated(target, deps):
 try:
  target_time = os.path.getmtime(target)
 except os.error:
  return 1
 for dep in deps:
  dep_time = os.path.getmtime(dep)
  if (dep_time > target_time):
   return 1
 return 0

def target_outdated ( target , deps ) : try : target_time = os . path . getmtime ( target ) except os . error : return 1 for dep in deps : dep_time = os . path . getmtime ( dep ) if ( dep_time > target_time ) : return 1 return 0
determine whether a target is out of date .