1772 |
|
|
1773 |
build_vpath_lists (); |
build_vpath_lists (); |
1774 |
|
|
1775 |
/* Mark files given with -o flags as very old |
/* Mark files given with -o flags as very old and as having been updated |
1776 |
and as having been updated already, and files given with -W flags as |
already, and files given with -W flags as brand new (time-stamp as far |
1777 |
brand new (time-stamp as far as possible into the future). */ |
as possible into the future). If restarts is set we'll do -W later. */ |
1778 |
|
|
1779 |
if (old_files != 0) |
if (old_files != 0) |
1780 |
for (p = old_files->list; *p != 0; ++p) |
for (p = old_files->list; *p != 0; ++p) |
1786 |
f->command_state = cs_finished; |
f->command_state = cs_finished; |
1787 |
} |
} |
1788 |
|
|
1789 |
if (new_files != 0) |
if (!restarts && new_files != 0) |
1790 |
{ |
{ |
1791 |
for (p = new_files->list; *p != 0; ++p) |
for (p = new_files->list; *p != 0; ++p) |
1792 |
{ |
{ |
2117 |
/* Set always_make_flag if -B was given. */ |
/* Set always_make_flag if -B was given. */ |
2118 |
always_make_flag = always_make_set; |
always_make_flag = always_make_set; |
2119 |
|
|
2120 |
|
/* If restarts is set we haven't set up -W files yet, so do that now. */ |
2121 |
|
if (restarts && new_files != 0) |
2122 |
|
{ |
2123 |
|
for (p = new_files->list; *p != 0; ++p) |
2124 |
|
{ |
2125 |
|
f = enter_command_line_file (*p); |
2126 |
|
f->last_mtime = f->mtime_before_update = NEW_MTIME; |
2127 |
|
} |
2128 |
|
} |
2129 |
|
|
2130 |
/* If there is a temp file from reading a makefile from stdin, get rid of |
/* If there is a temp file from reading a makefile from stdin, get rid of |
2131 |
it now. */ |
it now. */ |
2132 |
if (stdin_nm && unlink (stdin_nm) < 0 && errno != ENOENT) |
if (stdin_nm && unlink (stdin_nm) < 0 && errno != ENOENT) |