[2/2] makefiles: Symlinks have no dependencies on source files.
Sebastian Lackner
sebastian at fds-team.de
Thu Oct 29 15:22:24 CDT 2015
Signed-off-by: Sebastian Lackner <sebastian at fds-team.de>
---
Fixes a install failure for winegcc. A dependency on winegcc.1 is not necessary.
tools/makedep.c | 7 +++++--
1 file changed, 5 insertions(+), 2 deletions(-)
diff --git a/tools/makedep.c b/tools/makedep.c
index c15f0ac..40b9190 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -1796,8 +1796,11 @@ static void output_install_rules( struct makefile *make, struct strarray files,
if (!files.count) return;
for (i = 0; i < files.count; i += 2)
- if (files.str[i + 1][0] >= 'a' && files.str[i + 1][0] <= 'z') /* only for files in object dir */
- strarray_add_uniq( &targets, files.str[i] );
+ {
+ if (files.str[i + 1][0] < 'a' || files.str[i + 1][0] > 'z') continue; /* only for files in object dir */
+ if (files.str[i + 1][0] == 'y') continue; /* symlinks have no dependencies on source files */
+ strarray_add_uniq( &targets, files.str[i] );
+ }
output( "install %s::", target );
output_filenames_obj_dir( make, targets );
--
2.6.1
More information about the wine-patches
mailing list