mirror of
https://github.com/reactos/wine.git
synced 2024-11-29 22:50:43 +00:00
makedep: Look for source files only in the source directory.
This commit is contained in:
parent
50a01b095e
commit
c195e1355a
@ -673,18 +673,10 @@ static FILE *open_src_file( struct incl_file *pFile )
|
||||
{
|
||||
FILE *file;
|
||||
|
||||
/* first try name as is */
|
||||
if ((file = open_file( pFile->name )))
|
||||
{
|
||||
pFile->filename = xstrdup( pFile->name );
|
||||
return file;
|
||||
}
|
||||
/* now try in source dir */
|
||||
if (src_dir)
|
||||
{
|
||||
pFile->filename = src_dir_path( pFile->name );
|
||||
file = open_file( pFile->filename );
|
||||
}
|
||||
/* try in source dir */
|
||||
pFile->filename = src_dir_path( pFile->name );
|
||||
file = open_file( pFile->filename );
|
||||
|
||||
/* now try parent dir */
|
||||
if (!file && parent_dir)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user