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

Diff for /src/usr.bin/make/parse.c between version 1.82 and 1.83

version 1.82, 2007/09/16 10:57:02 version 1.83, 2007/09/16 12:30:35
Line 737 
Line 737 
   
                 /*                  /*
                  * Certain special targets have special semantics:                   * Certain special targets have special semantics:
                  *      .PATH           Have to set the dirSearchPath                   *      .PATH           Have to set the defaultPath
                  *                      variable too                   *                      variable too
                  *      .MAIN           Its sources are only used if                   *      .MAIN           Its sources are only used if
                  *                      nothing has been specified to                   *                      nothing has been specified to
Line 766 
Line 766 
                  */                   */
                 switch (specType) {                  switch (specType) {
                     case ExPath:                      case ExPath:
                         Lst_AtEnd(&paths, dirSearchPath);                          Lst_AtEnd(&paths, defaultPath);
                         break;                          break;
                     case Main:                      case Main:
                         if (!Lst_IsEmpty(create)) {                          if (!Lst_IsEmpty(create)) {
Line 1157 
Line 1157 
                             strchr(file, '\0'), '/');                              strchr(file, '\0'), '/');
                         fullname = Dir_FindFile(newName, parseIncPath);                          fullname = Dir_FindFile(newName, parseIncPath);
                         if (fullname == NULL)                          if (fullname == NULL)
                                 fullname = Dir_FindFile(newName, dirSearchPath);                                  fullname = Dir_FindFile(newName, defaultPath);
                         free(newName);                          free(newName);
                         if (fullname)                          if (fullname)
                                 return fullname;                                  return fullname;
Line 1170 
Line 1170 
         fullname = Dir_FindFile(file, parseIncPath);          fullname = Dir_FindFile(file, parseIncPath);
         if (fullname)          if (fullname)
                 return fullname;                  return fullname;
         fullname = Dir_FindFile(file, dirSearchPath);          fullname = Dir_FindFile(file, defaultPath);
         if (fullname)          if (fullname)
                 return fullname;                  return fullname;
   

Legend:
Removed from v.1.82  
changed lines
  Added in v.1.83