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

Diff for /src/usr.bin/make/engine.c between version 1.43 and 1.44

version 1.43, 2013/05/22 12:14:08 version 1.44, 2013/05/25 11:54:14
Line 286 
Line 286 
 void  void
 Make_TimeStamp(GNode *parent, GNode *child)  Make_TimeStamp(GNode *parent, GNode *child)
 {  {
         if (is_strictly_before(parent->youngest->mtime, child->mtime)) {          if (is_strictly_before(parent->cmtime, child->mtime)) {
                 parent->youngest = child;                  parent->youngest = child;
                   parent->cmtime = child->mtime;
         }          }
 }  }
   
Line 490 
Line 491 
                                 printf(".EXEC node...");                                  printf(".EXEC node...");
                 }                  }
                 oodate = true;                  oodate = true;
         } else if (is_strictly_before(gn->mtime, gn->youngest->mtime) ||          } else if (is_strictly_before(gn->mtime, gn->cmtime) ||
            (is_out_of_date(gn->youngest->mtime) &&             (is_out_of_date(gn->cmtime) &&
             (is_out_of_date(gn->mtime) || (gn->type & OP_DOUBLEDEP)))) {              (is_out_of_date(gn->mtime) || (gn->type & OP_DOUBLEDEP)))) {
                 /*                  /*
                  * A node whose modification time is less than that of its                   * A node whose modification time is less than that of its
Line 500 
Line 501 
                  * or was the object of a :: operator is out-of-date.                   * or was the object of a :: operator is out-of-date.
                  */                   */
                 if (DEBUG(MAKE)) {                  if (DEBUG(MAKE)) {
                         if (is_strictly_before(gn->mtime, gn->youngest->mtime))                          if (is_strictly_before(gn->mtime, gn->cmtime))
                                 printf("modified before source(%s)...",                                  printf("modified before source(%s)...",
                                     gn->youngest->name);                                      gn->youngest->name);
                         else if (is_out_of_date(gn->mtime))                          else if (is_out_of_date(gn->mtime))

Legend:
Removed from v.1.43  
changed lines
  Added in v.1.44