Update a target with a given command given a list of dependencies. target_update(target,deps,cmd) -> runs cmd if target is outdated. This is just a wrapper around target_outdated() which calls the given command if target is outdated.
(target,deps,cmd)
| 352 | |
| 353 | |
| 354 | def target_update(target,deps,cmd): |
| 355 | """Update a target with a given command given a list of dependencies. |
| 356 | |
| 357 | target_update(target,deps,cmd) -> runs cmd if target is outdated. |
| 358 | |
| 359 | This is just a wrapper around target_outdated() which calls the given |
| 360 | command if target is outdated.""" |
| 361 | |
| 362 | if target_outdated(target,deps): |
| 363 | system(cmd) |
| 364 | |
| 365 | |
| 366 | ENOLINK = 1998 |
nothing calls this directly
no test coverage detected