Alexandre Julliard : makefiles: Remove support for running subdirectory makefiles through config.status.

Alexandre Julliard julliard at wine.codeweavers.com
Fri Nov 13 08:34:46 CST 2015


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Nov 13 18:56:41 2015 +0900

makefiles: Remove support for running subdirectory makefiles through config.status.

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

---

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

diff --git a/aclocal.m4 b/aclocal.m4
index 8e047b5..d5a3532 100644
--- a/aclocal.m4
+++ b/aclocal.m4
@@ -225,24 +225,13 @@ wine_fn_has_flag ()
 
 wine_fn_depend_rules ()
 {
-    if wine_fn_has_flag config
-    then
-        wine_fn_append_rule \
-"$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in Makefile config.status \$(MAKEDEP)
-	@./config.status --file $ac_dir/Makefile && \$(MAKEDEP) -iMakefile $ac_dir
-depend: $ac_dir/depend
-.PHONY: $ac_dir/depend
-$ac_dir/depend: \$(MAKEDEP) dummy
-	@./config.status --file $ac_dir/Makefile && \$(MAKEDEP) -iMakefile $ac_dir"
-    else
-        wine_fn_append_rule \
+    wine_fn_append_rule \
 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in Makefile \$(MAKEDEP)
 	\$(MAKEDEP) $ac_dir
 depend: $ac_dir/depend
 .PHONY: $ac_dir/depend
 $ac_dir/depend: \$(MAKEDEP) dummy
 	\$(MAKEDEP) $ac_dir"
-    fi
 }
 
 wine_fn_pot_rules ()
diff --git a/configure b/configure
index 3903e4f..3d6d521 100755
--- a/configure
+++ b/configure
@@ -7415,24 +7415,13 @@ wine_fn_has_flag ()
 
 wine_fn_depend_rules ()
 {
-    if wine_fn_has_flag config
-    then
-        wine_fn_append_rule \
-"$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in Makefile config.status \$(MAKEDEP)
-	@./config.status --file $ac_dir/Makefile && \$(MAKEDEP) -iMakefile $ac_dir
-depend: $ac_dir/depend
-.PHONY: $ac_dir/depend
-$ac_dir/depend: \$(MAKEDEP) dummy
-	@./config.status --file $ac_dir/Makefile && \$(MAKEDEP) -iMakefile $ac_dir"
-    else
-        wine_fn_append_rule \
+    wine_fn_append_rule \
 "$ac_dir/Makefile: $srcdir/$ac_dir/Makefile.in Makefile \$(MAKEDEP)
 	\$(MAKEDEP) $ac_dir
 depend: $ac_dir/depend
 .PHONY: $ac_dir/depend
 $ac_dir/depend: \$(MAKEDEP) dummy
 	\$(MAKEDEP) $ac_dir"
-    fi
 }
 
 wine_fn_pot_rules ()
diff --git a/tools/make_makefiles b/tools/make_makefiles
index e86c95b..78b6dea 100755
--- a/tools/make_makefiles
+++ b/tools/make_makefiles
@@ -202,7 +202,7 @@ sub parse_makefile($)
 
         if (/\@[A-Z_]+\@/)  # config.status substitution variable
         {
-            ${$make{"=flags"}}{"config"} = 1;
+            die "Configure substitution is not allowed in $file";
         }
         if (/^\s*(MODULE|IMPORTLIB|TESTDLL|PARENTSRC|APPMODE)\s*=\s*(.*)/)
         {
diff --git a/tools/makedep.c b/tools/makedep.c
index 469b833..14a26ef 100644
--- a/tools/makedep.c
+++ b/tools/makedep.c
@@ -180,7 +180,6 @@ struct makefile
 static struct makefile *top_makefile;
 
 static const char *output_makefile_name = "Makefile";
-static const char *input_makefile_name;
 static const char *input_file_name;
 static const char *output_file_name;
 static const char *temp_file_name;
@@ -193,8 +192,7 @@ static const char Usage[] =
     "Usage: makedep [options] directories\n"
     "Options:\n"
     "   -R from to  Compute the relative path between two directories\n"
-    "   -fxxx       Store output in file 'xxx' (default: Makefile)\n"
-    "   -ixxx       Read input from file 'xxx' (default: Makefile.in)\n";
+    "   -fxxx       Store output in file 'xxx' (default: Makefile)\n";
 
 
 #ifndef __GNUC__
@@ -1558,11 +1556,9 @@ static FILE *open_input_makefile( const struct makefile *make )
     FILE *ret;
 
     if (make->base_dir)
-    {
-        input_file_name = base_dir_path( make, input_makefile_name );
-        if (strendswith( input_makefile_name, ".in" )) input_file_name = root_dir_path( input_file_name );
-    }
-    else input_file_name = output_makefile_name;  /* always use output name for main Makefile */
+        input_file_name = root_dir_path( base_dir_path( make, strmake( "%s.in", output_makefile_name )));
+    else
+        input_file_name = output_makefile_name;  /* always use output name for main Makefile */
 
     input_line = 0;
     if (!(ret = fopen( input_file_name, "r" ))) fatal_perror( "open" );
@@ -3208,9 +3204,6 @@ static int parse_option( const char *opt )
     case 'f':
         if (opt[2]) output_makefile_name = opt + 2;
         break;
-    case 'i':
-        if (opt[2]) input_makefile_name = opt + 2;
-        break;
     case 'R':
         relative_dir_mode = 1;
         break;
@@ -3271,8 +3264,6 @@ int main( int argc, char *argv[] )
 
     for (i = 0; i < HASH_SIZE; i++) list_init( &files[i] );
 
-    if (!input_makefile_name) input_makefile_name = strmake( "%s.in", output_makefile_name );
-
     top_makefile = parse_makefile( NULL, "# End of common header" );
 
     linguas      = get_expanded_make_var_array( top_makefile, "LINGUAS" );




More information about the wine-cvs mailing list