Show More
@@ -292,6 +292,8 b' def target_outdated(target,deps):' | |||
|
292 | 292 | |
|
293 | 293 | If target doesn't exist or is older than any file listed in deps, return |
|
294 | 294 | true, otherwise return false. |
|
295 | ||
|
296 | .. deprecated:: 8.22 | |
|
295 | 297 | """ |
|
296 | 298 | try: |
|
297 | 299 | target_time = os.path.getmtime(target) |
@@ -312,7 +314,10 b' def target_update(target,deps,cmd):' | |||
|
312 | 314 | target_update(target,deps,cmd) -> runs cmd if target is outdated. |
|
313 | 315 | |
|
314 | 316 | This is just a wrapper around target_outdated() which calls the given |
|
315 |
command if target is outdated. |
|
|
317 | command if target is outdated. | |
|
318 | ||
|
319 | .. deprecated:: 8.22 | |
|
320 | """ | |
|
316 | 321 | |
|
317 | 322 | if target_outdated(target,deps): |
|
318 | 323 | system(cmd) |
General Comments 0
You need to be logged in to leave comments.
Login now