[BACK]Return to make.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / make

Diff for /src/usr.bin/make/make.c between version 1.64 and 1.65

version 1.64, 2012/10/09 19:49:28 version 1.65, 2012/12/08 12:54:17
Line 572 
Line 572 
 bool  bool
 Make_Run(Lst targs)             /* the initial list of targets */  Make_Run(Lst targs)             /* the initial list of targets */
 {  {
         int errors;     /* Number of errors the Job module reports */          bool problem;   /* errors occurred */
         GNode *gn;          GNode *gn;
         unsigned int i;          unsigned int i;
         bool cycle;          bool cycle;
Line 619 
Line 619 
                 (void)MakeStartJobs();                  (void)MakeStartJobs();
         }          }
   
         errors = Job_Finish();          problem = Job_Finish();
         cycle = false;          cycle = false;
   
         for (gn = ohash_first(&targets, &i); gn != NULL;          for (gn = ohash_first(&targets, &i); gn != NULL;
Line 627 
Line 627 
                 if (has_been_built(gn))                  if (has_been_built(gn))
                         continue;                          continue;
                 cycle = true;                  cycle = true;
                 errors++;                  problem = true;
                 printf("Error: target %s unaccounted for (%s)\n",                  printf("Error: target %s unaccounted for (%s)\n",
                     gn->name, status_to_string(gn));                      gn->name, status_to_string(gn));
         }          }
Line 636 
Line 636 
          * because some inferior reported an error.           * because some inferior reported an error.
          */           */
         Lst_ForEach(targs, MakePrintStatus, &cycle);          Lst_ForEach(targs, MakePrintStatus, &cycle);
         if (errors)          if (problem)
                 Fatal("Errors while building");                  Fatal("Errors while building");
   
         return true;          return true;

Legend:
Removed from v.1.64  
changed lines
  Added in v.1.65