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

Diff for /src/usr.bin/make/main.c between version 1.80 and 1.81

version 1.80, 2007/09/17 09:28:36 version 1.81, 2007/09/17 11:11:30
Line 308 
Line 308 
                         break;                          break;
                 }                  }
                 case 'm':                  case 'm':
                         Dir_AddDir(sysIncPath, optarg);                          Dir_AddDir(systemIncludePath, optarg);
                         record_option(c, optarg);                          record_option(c, optarg);
                         break;                          break;
                 case -1:                  case -1:
Line 608 
Line 608 
                 LIST sysMkPath;                 /* Path of sys.mk */                  LIST sysMkPath;                 /* Path of sys.mk */
   
                 Lst_Init(&sysMkPath);                  Lst_Init(&sysMkPath);
                 Dir_Expand(_PATH_DEFSYSMK, sysIncPath, &sysMkPath);                  Dir_Expand(_PATH_DEFSYSMK, systemIncludePath, &sysMkPath);
                 if (Lst_IsEmpty(&sysMkPath))                  if (Lst_IsEmpty(&sysMkPath))
                         Fatal("make: no system rules (%s).", _PATH_DEFSYSMK);                          Fatal("make: no system rules (%s).", _PATH_DEFSYSMK);
   
Line 743 
Line 743 
          * add the directories from the DEFSYSPATH (more than one may be given           * add the directories from the DEFSYSPATH (more than one may be given
          * as dir1:...:dirn) to the system include path.           * as dir1:...:dirn) to the system include path.
          */           */
         if (Lst_IsEmpty(sysIncPath))          if (Lst_IsEmpty(systemIncludePath))
             add_dirpath(sysIncPath, syspath);              add_dirpath(systemIncludePath, syspath);
   
         read_all_make_rules(noBuiltins, &makefiles, &d);          read_all_make_rules(noBuiltins, &makefiles, &d);
   
Line 863 
Line 863 
                         }                          }
                 }                  }
                 /* look in -I and system include directories. */                  /* look in -I and system include directories. */
                 name = Dir_FindFile(fname, parseIncPath);                  name = Dir_FindFile(fname, userIncludePath);
                 if (!name)                  if (!name)
                         name = Dir_FindFile(fname, sysIncPath);                          name = Dir_FindFile(fname, systemIncludePath);
                 if (!name || !(stream = fopen(name, "r")))                  if (!name || !(stream = fopen(name, "r")))
                         return false;                          return false;
                 fname = name;                  fname = name;

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81