- Timestamp:
- Dec 26, 2014 4:36:58 PM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/kmk/remake.c
r2666 r2742 465 465 int running = 0; 466 466 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET 467 struct file * req_file =file;468 struct file * org_file =file;467 struct file *org_file; 468 struct file *req_file; 469 469 struct file *f2, *f3; 470 470 471 /* Always work on the primary multi target file. */ 472 473 if (file->multi_head != NULL && file->multi_head != file) 474 { 475 DBS (DB_VERBOSE, (_("Considering target file `%s' -> multi head `%s'.\n"), 476 file->name, file->multi_head->name)); 477 org_file = file = file->multi_head; 471 /* Secondary target expansion leaves renamed files around, skip any rename 472 files to simplify multi target handling. */ 473 474 check_renamed(file); 475 476 /* Remember the request file and find the primary multi target file. Always 477 work on the primary file in a multi target recipe. */ 478 479 req_file = file; 480 org_file = file; 481 if (file->multi_head != NULL) 482 { 483 if (file->multi_head == file) 484 DBS (DB_VERBOSE, (_("Considering target file `%s' (multi head).\n"), file->name)); 485 else 486 { 487 org_file = file = file->multi_head; 488 DBS (DB_VERBOSE, (_("Considering target file `%s' -> multi head `%s'.\n"), 489 req_file->name, file->name)); 490 assert (file->multi_head == file); 491 } 478 492 } 479 493 else … … 541 555 #ifdef CONFIG_WITH_EXPLICIT_MULTITARGET 542 556 this_mtime = file_mtime (file); 557 check_renamed (file); 543 558 f3 = file; 544 559 for (f2 = file->multi_next; … … 564 579 break; 565 580 } 566 check_renamed (f ile);581 check_renamed (f3); 567 582 noexist = this_mtime == NONEXISTENT_MTIME; 568 583 if (noexist)
Note:
See TracChangeset
for help on using the changeset viewer.