]> sourceware.org Git - automake.git/commitdiff
* automake.in (handle_multilib): Only add multilib support code at
authorTom Tromey <tromey@redhat.com>
Sun, 27 May 2001 17:06:30 +0000 (17:06 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 27 May 2001 17:06:30 +0000 (17:06 +0000)
top level.
* lib/am/multilib.am: Handle invocation of *-multi targets
differently for SUBDIRS and non-SUBDIRS Makefiles.
* m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
Only add multilib code when the Makefile in question is actually
rebuilt.

ChangeLog
automake.in
lib/am/multilib.am
m4/multi.m4

index 31a59f0d7e464a6ad00d2dd01eb42d8ea88b05bc..6d12b0b8e91375d5aa7ca2eea4ceae0652b89828 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2001-05-27  Tom Tromey  <tromey@redhat.com>
 
+       * automake.in (handle_multilib): Only add multilib support code at
+       top level.
+       * lib/am/multilib.am: Handle invocation of *-multi targets
+       differently for SUBDIRS and non-SUBDIRS Makefiles.
+       * m4/multi.m4 (AM_ENABLE_MULTILIB): Removed erroneous comment.
+       Only add multilib code when the Makefile in question is actually
+       rebuilt.
+
        * lib/am/dejagnu.am (check-DEJAGNU): Added AM_RUNTESTFLAGS.
 
 2001-05-25  Alexandre Duret-Lutz  <duret_g@epita.fr>
index 9be3fc3ab0e80e9415fa61502508d93d9c557125..091ea4914adbda9d33315f3a2fa80f0b365163bb 100755 (executable)
@@ -3117,9 +3117,10 @@ sub handle_tags
 # Handle multilib support.
 sub handle_multilib
 {
-    return unless $seen_multilib;
-
-    $output_rules .= &file_contents ('multilib');
+    if ($seen_multilib && $relative_dir eq '.')
+    {
+       $output_rules .= &file_contents ('multilib');
+    }
 }
 
 
index 9ff16eb93b912e7ee96638778e1702218eb394fd..18df4311286be34daae8764e1ac2536dc9e081bc 100644 (file)
@@ -30,6 +30,13 @@ install-multi:
 
 .PHONY: all-multi install-multi
 
+if %?SUBDIRS%
+all-recursive: all-multi
+install-recursive: install-multi
+else !%?SUBDIRS%
+all-am: all-multi
+install-am: install-multi
+endif !%?SUBDIRS%
 
 mostlyclean-am: mostlyclean-multi
 clean-am: clean-multi
@@ -48,10 +55,14 @@ maintainer-clean-multi:
 .PHONY: mostlyclean-multi clean-multi distclean-multi maintainer-clean-multi
 
 
-## FIXME: this is probably broken.
-all-recursive: all-multi
-install-recursive: install-multi
+if %?SUBDIRS%
 mostlyclean-recursive: mostlyclean-multi
 clean-recursive: clean-multi
 distclean-recursive: distclean-multi
 maintainer-clean-recursive: maintainer-clean-multi
+else !%?SUBDIRS%
+mostlyclean-am: mostlyclean-multi
+clean-am: clean-multi
+distclean-am: distclean-multi
+maintainer-clean-am: maintainer-clean-multi
+endif !%?SUBDIRS%
index b0fc4e35a3ed86fac8f3a86a343d5ad355607c13..447fe621e526969cb87cfca5ffa17e433f6209e5 100644 (file)
@@ -29,11 +29,13 @@ fi
 AC_SUBST(multi_basedir)
 
 AC_OUTPUT_COMMANDS([
-if test -n "$CONFIG_FILES"; then
-  # FIXME: Something is really fishy here, the dot looks like Perl
-  # code.  What was meant?  Clearly, this code has never been exercised.
-  ac_file=ifelse([$1],,Makefile,[$1]) . ${multi_basedir}/config-ml.in
-fi],
+# Only add multilib support code if we just rebuilt the top-level
+# Makefile.
+case " $CONFIG_FILES " in
+ *" ifelse([$1],,Makefile,[$1]) "*)
+   ac_file=ifelse([$1],,Makefile,[$1]) . ${multi_basedir}/config-ml.in
+   ;;
+esac],
                    [
 srcdir="$srcdir"
 host="$host"
This page took 0.040741 seconds and 5 git commands to generate.