Lines Matching refs:d
332 struct dep *d; in update_file() local
336 for (d = f->deps; d != 0; d = d->next) in update_file()
337 status |= update_file (d->file, depth + 1); in update_file()
375 register struct dep *d, *lastd; in update_file_1() local
470 d = file->deps; in update_file_1()
471 while (d != 0) in update_file_1()
477 check_renamed (d->file); in update_file_1()
479 mtime = file_mtime (d->file); in update_file_1()
480 check_renamed (d->file); in update_file_1()
482 if (is_updating (d->file)) in update_file_1()
485 file->name, d->file->name); in update_file_1()
490 file->deps = d->next; in update_file_1()
492 lastd->next = d->next; in update_file_1()
493 d = d->next; in update_file_1()
497 d->file->parent = file; in update_file_1()
503 dontcare = d->file->dontcare; in update_file_1()
504 d->file->dontcare = file->dontcare; in update_file_1()
508 dep_status |= check_dep (d->file, depth, this_mtime, &maybe_make); in update_file_1()
512 d->file->dontcare = dontcare; in update_file_1()
514 if (! d->ignore_mtime) in update_file_1()
517 check_renamed (d->file); in update_file_1()
520 register struct file *f = d->file; in update_file_1()
540 d->changed = ((file_mtime (d->file) != mtime) in update_file_1()
543 lastd = d; in update_file_1()
544 d = d->next; in update_file_1()
552 for (d = file->deps; d != 0; d = d->next) in update_file_1()
553 if (d->file->intermediate) in update_file_1()
557 FILE_TIMESTAMP mtime = file_mtime (d->file); in update_file_1()
558 check_renamed (d->file); in update_file_1()
559 d->file->parent = file; in update_file_1()
564 dontcare = d->file->dontcare; in update_file_1()
565 d->file->dontcare = file->dontcare; in update_file_1()
569 dep_status |= update_file (d->file, depth); in update_file_1()
573 d->file->dontcare = dontcare; in update_file_1()
575 check_renamed (d->file); in update_file_1()
578 register struct file *f = d->file; in update_file_1()
594 d->changed = ((file->phony && file->cmds != 0) in update_file_1()
595 || file_mtime (d->file) != mtime); in update_file_1()
645 for (d = file->deps; d != 0; d = d->next) in update_file_1()
647 FILE_TIMESTAMP d_mtime = file_mtime (d->file); in update_file_1()
648 check_renamed (d->file); in update_file_1()
650 if (! d->ignore_mtime) in update_file_1()
656 if (d_mtime == NONEXISTENT_MTIME && !d->file->intermediate) in update_file_1()
663 deps_changed |= d->changed; in update_file_1()
668 d->changed |= noexist || d_mtime > this_mtime; in update_file_1()
674 if (d->ignore_mtime) in update_file_1()
684 else if (d->changed) in update_file_1()
695 printf (fmt, dep_name (d), file->name); in update_file_1()
798 struct dep *d; in notice_finished_file() local
906 for (d = file->also_make; d != 0; d = d->next) in notice_finished_file()
908 d->file->command_state = cs_finished; in notice_finished_file()
909 d->file->updated = 1; in notice_finished_file()
910 d->file->update_status = file->update_status; in notice_finished_file()
912 if (ran && !d->file->phony) in notice_finished_file()
917 (void) f_mtime (d->file, 0); in notice_finished_file()
936 struct dep *d; in check_dep() local
989 d = file->deps; in check_dep()
990 while (d != 0) in check_dep()
994 if (is_updating (d->file)) in check_dep()
997 file->name, d->file->name); in check_dep()
1000 file->deps = d->next; in check_dep()
1001 free_dep (d); in check_dep()
1002 d = file->deps; in check_dep()
1006 lastd->next = d->next; in check_dep()
1007 free_dep (d); in check_dep()
1008 d = lastd->next; in check_dep()
1013 d->file->parent = file; in check_dep()
1015 dep_status |= check_dep (d->file, depth, this_mtime, in check_dep()
1017 if (! d->ignore_mtime) in check_dep()
1019 check_renamed (d->file); in check_dep()
1023 if (d->file->command_state == cs_running in check_dep()
1024 || d->file->command_state == cs_deps_running) in check_dep()
1030 lastd = d; in check_dep()
1031 d = d->next; in check_dep()