makedep: Look for source files only in the source directory.

This commit is contained in:
Alexandre Julliard 2014-02-15 10:53:00 +01:00
parent 50a01b095e
commit c195e1355a

View File

@ -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)
{