Alexandre Julliard : makedep: Update dependencies even with no source
files .
Alexandre Julliard
julliard at wine.codeweavers.com
Mon Sep 25 09:46:54 CDT 2006
Module: wine
Branch: master
Commit: 1b9535afc872082b8c6d4d1e3c738da41ca87e0c
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=1b9535afc872082b8c6d4d1e3c738da41ca87e0c
Author: Alexandre Julliard <julliard at winehq.org>
Date: Fri Sep 22 09:25:49 2006 +0200
makedep: Update dependencies even with no source files.
---
tools/makedep.c | 11 +++++++----
1 files changed, 7 insertions(+), 4 deletions(-)
diff --git a/tools/makedep.c b/tools/makedep.c
index 905c93b..300ed8d 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -710,9 +710,12 @@ static void output_dependencies(void)
if (Separator && ((file = fopen( OutputFileName, "r+" ))))
{
while ((buffer = get_line( file )))
- if (!strncmp( buffer, Separator, strlen(Separator) )) break;
- ftruncate( fileno(file), ftell(file) );
- fseek( file, 0L, SEEK_END );
+ {
+ if (strncmp( buffer, Separator, strlen(Separator) )) continue;
+ ftruncate( fileno(file), ftell(file) );
+ fseek( file, 0L, SEEK_END );
+ break;
+ }
}
if (!file)
{
@@ -815,6 +818,6 @@ int main( int argc, char *argv[] )
parse_file( pFile, 1 );
}
LIST_FOR_EACH_ENTRY( pFile, &includes, INCL_FILE, entry ) parse_file( pFile, 0 );
- if (!list_empty( &sources )) output_dependencies();
+ output_dependencies();
return 0;
}
More information about the wine-cvs
mailing list