Commit 1b9535af authored by Alexandre Julliard's avatar Alexandre Julliard

makedep: Update dependencies even with no source files.

parent dea8c6a9
...@@ -710,9 +710,12 @@ static void output_dependencies(void) ...@@ -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[] ) ...@@ -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;
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment