Changeset 1857 for trunk/src/kmk/remake.c
- Timestamp:
- Oct 13, 2008, 5:58:07 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/remake.c
r1110 r1857 386 386 if (file->multi_head != NULL && file->multi_head != file) 387 387 { 388 DBS (DB_VERBOSE, (_("Considering target file `%s' -> multi head `%s'.\n"), 388 DBS (DB_VERBOSE, (_("Considering target file `%s' -> multi head `%s'.\n"), 389 389 file->name, file->multi_head->name)); 390 390 file = file->multi_head; … … 505 505 506 506 /* Update all non-intermediate files we depend on, if necessary, 507 and see whether any of them is more recent than this file. 507 and see whether any of them is more recent than this file. 508 508 For explicit multitarget rules we must iterate all the output 509 509 files to get the correct picture. */ … … 523 523 int maybe_make; 524 524 int dontcare = 0; 525 525 526 526 check_renamed (d->file); 527 527 528 528 mtime = file_mtime (d->file); 529 529 check_renamed (d->file); 530 530 531 531 if (is_updating (d->file)) 532 532 { … … 561 561 continue; 562 562 } 563 563 564 564 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET 565 565 d->file->parent = f2; … … 568 568 #endif 569 569 maybe_make = must_make; 570 570 571 571 /* Inherit dontcare flag from our parent. */ 572 572 if (rebuilding_makefiles) … … 575 575 d->file->dontcare = file->dontcare; 576 576 } 577 578 577 578 579 579 dep_status |= check_dep (d->file, depth, this_mtime, &maybe_make); 580 580 581 581 /* Restore original dontcare flag. */ 582 582 if (rebuilding_makefiles) 583 583 d->file->dontcare = dontcare; 584 584 585 585 if (! d->ignore_mtime) 586 586 must_make = maybe_make; 587 587 588 588 check_renamed (d->file); 589 589 590 590 { 591 591 register struct file *f = d->file; … … 600 600 while (f != 0); 601 601 } 602 602 603 603 if (dep_status != 0 && !keep_going_flag) 604 604 break; 605 605 606 606 if (!running) 607 607 /* The prereq is considered changed if the timestamp has changed while … … 609 609 d->changed = ((file_mtime (d->file) != mtime) 610 610 || (mtime == NONEXISTENT_MTIME)); 611 611 612 612 lastd = d; 613 613 d = d->next; … … 633 633 { 634 634 int dontcare = 0; 635 635 636 636 FILE_TIMESTAMP mtime = file_mtime (d->file); 637 637 check_renamed (d->file); … … 641 641 d->file->parent = file; 642 642 #endif 643 643 644 644 /* Inherit dontcare flag from our parent. */ 645 645 if (rebuilding_makefiles) … … 648 648 d->file->dontcare = file->dontcare; 649 649 } 650 651 650 651 652 652 dep_status |= update_file (d->file, depth); 653 653 654 654 /* Restore original dontcare flag. */ 655 655 if (rebuilding_makefiles) 656 656 d->file->dontcare = dontcare; 657 657 658 658 check_renamed (d->file); 659 659 660 660 { 661 661 register struct file *f = d->file; … … 670 670 while (f != 0); 671 671 } 672 672 673 673 if (dep_status != 0 && !keep_going_flag) 674 674 break; 675 675 676 676 if (!running) 677 677 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET … … 741 741 #endif 742 742 check_renamed (d->file); 743 743 744 744 if (! d->ignore_mtime) 745 745 { … … 753 753 must_make = 1; 754 754 #endif 755 755 756 756 /* Set DEPS_CHANGED if this dep actually changed. */ 757 757 deps_changed |= d->changed; 758 758 } 759 759 760 760 /* Set D->changed if either this dep actually changed, 761 761 or its dependent, FILE, is older or does not exist. */ 762 762 d->changed |= noexist || d_mtime > this_mtime; 763 763 764 764 if (!noexist && ISDB (DB_BASIC|DB_VERBOSE)) 765 765 { 766 766 const char *fmt = 0; 767 767 768 768 if (d->ignore_mtime) 769 769 { … … 783 783 else if (ISDB (DB_VERBOSE)) 784 784 fmt = _("Prerequisite `%s' is older than target `%s'.\n"); 785 785 786 786 if (fmt) 787 787 {
Note:
See TracChangeset
for help on using the changeset viewer.