Alexandre Julliard : makefiles: Generate makefile dependencies from makedep.

Alexandre Julliard julliard at wine.codeweavers.com
Mon Jan 11 08:22:28 CST 2016


Module: wine
Branch: master
Commit: cd0af88591b31c1622cc6c7f46b2d3e3c1646ee6
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cd0af88591b31c1622cc6c7f46b2d3e3c1646ee6

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Jan 11 21:02:28 2016 +0900

makefiles: Generate makefile dependencies from makedep.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 aclocal.m4      | 2 --
 configure       | 2 --
 tools/makedep.c | 7 +++++++
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/aclocal.m4 b/aclocal.m4
index 7fa79ff..d09d91b 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -231,8 +231,6 @@ wine_fn_has_flag ()
 wine_fn_depend_rules ()
 {
     wine_fn_append_file SUBDIRS $ac_dir
-    wine_fn_append_rule \
-"Makefile: $srcdir/$ac_dir/Makefile.in"
 }
 
 wine_fn_pot_rules ()
diff --git a/configure b/configure
index 7ed6963..c11b266 100755
--- a/configure
+++ b/configure
@@ -7426,8 +7426,6 @@ wine_fn_has_flag ()
 wine_fn_depend_rules ()
 {
     wine_fn_append_file SUBDIRS $ac_dir
-    wine_fn_append_rule \
-"Makefile: $srcdir/$ac_dir/Makefile.in"
 }
 
 wine_fn_pot_rules ()
diff --git a/tools/makedep.c b/tools/makedep.c
index d46c715..e514cb3 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -2845,15 +2845,22 @@ static struct strarray output_sources( const struct makefile *make )
 
     if (make->subdirs.count)
     {
+        struct strarray makefile_deps = empty_strarray;
         struct strarray distclean_files = empty_strarray;
+
         for (i = 0; i < make->subdirs.count; i++)
         {
+            strarray_add( &makefile_deps, top_dir_path( make, base_dir_path( make->submakes[i],
+                                                         strmake ( "%s.in", output_makefile_name ))));
             strarray_add( &distclean_files, base_dir_path( make->submakes[i], output_makefile_name ));
             if (!make->src_dir)
                 strarray_add( &distclean_files, base_dir_path( make->submakes[i], ".gitignore" ));
             if (make->submakes[i]->testdll)
                 strarray_add( &distclean_files, base_dir_path( make->submakes[i], "testlist.c" ));
         }
+        output( "Makefile:" );
+        output_filenames( makefile_deps );
+        output( "\n" );
         output( "distclean::\n");
         output( "\trm -f" );
         output_filenames( distclean_files );




More information about the wine-cvs mailing list