- Timestamp:
- Jun 4, 2007 12:05:14 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/remake.c
r1019 r1020 382 382 struct file *dep_file; 383 383 384 /* Always work on the primary multi target file, unless of course, if it's 385 a multi-maybe file with its order only dependency on the primary file. */ 384 /* Always work on the primary multi target file. */ 386 385 if (file->multi_head != NULL && file->multi_head != file) 387 386 { 388 if (!file->multi_maybe) 389 { 390 DBS (DB_VERBOSE, (_("Considering target file `%s' -> switching to multi head `%s'.\n"), 391 file->name, file->multi_head->name)); 392 file = file->multi_head; 393 } 394 else 395 DBF (DB_VERBOSE, _("Considering target file `%s'. (multi-maybe)\n")); 387 DBS (DB_VERBOSE, (_("Considering target file `%s' -> switching to multi head `%s'.\n"), 388 file->name, file->multi_head->name)); 389 file = file->multi_head; 396 390 /* XXX: optimize dependencies. */ 397 391 } … … 493 487 494 488 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET 495 for (dep_file = file; dep_file; 496 dep_file = file == file->multi_head ? dep_file->multi_next : NULL) 489 for (dep_file = file; dep_file; dep_file = dep_file->multi_next) 497 490 { 498 491 lastd = 0; … … 609 602 { 610 603 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET 611 for (dep_file = file; dep_file; 612 dep_file = file == file->multi_head ? dep_file->multi_next : NULL) 604 for (dep_file = file; dep_file; dep_file = dep_file->multi_next) 613 605 for (d = dep_file->deps; d != 0; d = d->next) 614 606 #else … … 716 708 deps_changed = 0; 717 709 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET 718 for (dep_file = file; dep_file; 719 dep_file = file == file->multi_head ? dep_file->multi_next : NULL) 710 for (dep_file = file; dep_file; dep_file = dep_file->multi_next) 720 711 #endif 721 712 for (d = file->deps; d != 0; d = d->next) … … 782 773 depth--; 783 774 784 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET785 /* maybe-update targets in a multi target should have been remade786 by now, so return before we remake it again. */787 if (file->multi_maybe)788 {789 assert (file->multi_head->updated);790 assert (file->update_status <= 0);791 DBF (DB_VERBOSE, _("Finished maybe-update file `%s'.\n"));792 return 0;793 }794 #endif795 796 775 if (file->double_colon && file->deps == 0) 797 776 {
Note:
See TracChangeset
for help on using the changeset viewer.