makedep: Update dependencies even with no source files.
This commit is contained in:
parent
dea8c6a9ce
commit
1b9535afc8
|
@ -710,9 +710,12 @@ static void output_dependencies(void)
|
||||||
if (Separator && ((file = fopen( OutputFileName, "r+" ))))
|
if (Separator && ((file = fopen( OutputFileName, "r+" ))))
|
||||||
{
|
{
|
||||||
while ((buffer = get_line( file )))
|
while ((buffer = get_line( file )))
|
||||||
if (!strncmp( buffer, Separator, strlen(Separator) )) break;
|
{
|
||||||
ftruncate( fileno(file), ftell(file) );
|
if (strncmp( buffer, Separator, strlen(Separator) )) continue;
|
||||||
fseek( file, 0L, SEEK_END );
|
ftruncate( fileno(file), ftell(file) );
|
||||||
|
fseek( file, 0L, SEEK_END );
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (!file)
|
if (!file)
|
||||||
{
|
{
|
||||||
|
@ -815,6 +818,6 @@ int main( int argc, char *argv[] )
|
||||||
parse_file( pFile, 1 );
|
parse_file( pFile, 1 );
|
||||||
}
|
}
|
||||||
LIST_FOR_EACH_ENTRY( pFile, &includes, INCL_FILE, entry ) parse_file( pFile, 0 );
|
LIST_FOR_EACH_ENTRY( pFile, &includes, INCL_FILE, entry ) parse_file( pFile, 0 );
|
||||||
if (!list_empty( &sources )) output_dependencies();
|
output_dependencies();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue