'make clean' can now safely remove .redo dirs.

This commit is contained in:
Avery Pennarun 2010-11-12 22:50:23 -08:00
commit f43187b73a
3 changed files with 10 additions and 0 deletions

View file

@ -103,6 +103,9 @@ def dirty_deps(t, depth):
def stamp(t):
stampfile = sname('stamp', t)
if not os.path.exists(REDO_BASE + '/.redo'):
# .redo might not exist in a 'make clean' target
return
open(stampfile, 'w').close()
try:
mtime = os.stat(t).st_mtime