Lines Matching refs:target
11 def newer (source, target):
13 'target', or if 'source' exists and 'target' doesn't. Return false if
14 both exist and 'target' is the same age or younger than 'source'.
20 if not os.path.exists(target):
25 mtime2 = os.stat(target)[ST_MTIME]
34 than its corresponding target. Return a pair of lists (sources,
35 targets) where source is newer than target, according to the semantics
54 def newer_group (sources, target, missing='error'):
55 """Return true if 'target' is out-of-date with respect to any file
56 listed in 'sources'. In other words, if 'target' exists and is newer
61 "newer", any missing source files make us assume that 'target' is
67 # If the target doesn't even exist, then it's definitely out-of-date.
68 if not os.path.exists(target):
72 # is more recent than 'target', then 'target' is out-of-date and
74 # of the loop, then 'target' is up-to-date and we return false.
76 target_mtime = os.stat(target)[ST_MTIME]
82 continue # target's dependency list
83 elif missing == 'newer': # missing source means target is