Module: wine Branch: master Commit: 7e8ac46a5c33867bc4884aaae7d4a7f7fb308251 URL: https://gitlab.winehq.org/wine/wine/-/commit/7e8ac46a5c33867bc4884aaae7d4a7f...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Apr 21 09:54:37 2023 +0200
makedep: Avoid generating empty dependencies.
---
tools/makedep.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-)
diff --git a/tools/makedep.c b/tools/makedep.c index 3b5fa7085ab..00ebfa27e8f 100644 --- a/tools/makedep.c +++ b/tools/makedep.c @@ -75,8 +75,8 @@ struct incl_file int included_line; /* line where this file was included */ enum incl_type type; /* type of include */ unsigned int arch; /* architecture for multi-arch files, otherwise 0 */ - int use_msvcrt:1; /* put msvcrt headers in the search path? */ - int is_external:1; /* file from external library? */ + unsigned int use_msvcrt:1; /* put msvcrt headers in the search path? */ + unsigned int is_external:1; /* file from external library? */ struct incl_file *owner; unsigned int files_count; /* files in use */ unsigned int files_size; /* total allocated size */ @@ -3241,10 +3241,13 @@ static void output_source_default( struct makefile *make, struct incl_file *sour strarray_add( &make->test_files, obj ); }
- output_filenames_obj_dir( make, targets ); - output( ":" ); - output_filenames( source->dependencies ); - output( "\n" ); + if (targets.count && source->dependencies.count) + { + output_filenames_obj_dir( make, targets ); + output( ":" ); + output_filenames( source->dependencies ); + output( "\n" ); + } }