version 1.82, 2007/09/16 10:57:02 |
version 1.83, 2007/09/16 12:30:35 |
|
|
|
|
/* |
/* |
* 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 |
|
|
*/ |
*/ |
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)) { |
|
|
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; |
|
|
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; |
|
|