diff --git a/setup/__init__.py b/setup/__init__.py index 4d353a4ac9..8288fb8863 100644 --- a/setup/__init__.py +++ b/setup/__init__.py @@ -47,7 +47,7 @@ def newer(targets, sources): if not os.path.exists(f): return True ttimes = map(lambda x: os.stat(x).st_mtime, targets) - oldest_target = max(ttimes) + oldest_target = min(ttimes) try: stimes = map(lambda x: os.stat(x).st_mtime, sources) newest_source = max(stimes)