/[make]/make/main.c
ViewVC logotype

Diff of /make/main.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.206 by psmith, Sat Jun 25 18:57:28 2005 UTC revision 1.207 by psmith, Sat Jun 25 20:00:24 2005 UTC
# Line 1772  main (int argc, char **argv, char **envp Line 1772  main (int argc, char **argv, char **envp
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)
# Line 1786  main (int argc, char **argv, char **envp Line 1786  main (int argc, char **argv, char **envp
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          {          {
# Line 2117  main (int argc, char **argv, char **envp Line 2117  main (int argc, char **argv, char **envp
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)

Legend:
Removed from v.1.206  
changed lines
  Added in v.1.207

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26