Fix for output2.test
authorTom Tromey <tromey@redhat.com>
Sat, 7 Dec 1996 21:30:11 +0000 (21:30 +0000)
committerTom Tromey <tromey@redhat.com>
Sat, 7 Dec 1996 21:30:11 +0000 (21:30 +0000)
ChangeLog
Makefile.in
automake.in
tests/ChangeLog
tests/Makefile.am
tests/remake2.test [new file with mode: 0755]

index f50a5b7..6cb32ac 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Sat Dec  7 11:34:39 1996  Tom Tromey  <tromey@cygnus.com>
 
+       * automake.in (handle_configure): Check dirname of $file, not of
+       $local.  Test output2.test.
+
        * automake.in (handle_dependencies): Added some missing ";"s in
        transforms.
        (get_object_extension): Ditto.
index ed29b18..6989550 100644 (file)
@@ -95,18 +95,11 @@ default: all
 
 .SUFFIXES:
 .SUFFIXES: .texi .texinfo .info .dvi
-$(srcdir)/Makefile.in: Makefile.am $(top_srcdir)/configure.in 
-       cd $(top_srcdir) && automake --gnits Makefile
-
-Makefile: $(srcdir)/Makefile.in $(top_builddir)/config.status $(BUILT_SOURCES)
-       cd $(top_builddir) \
-         && CONFIG_FILES=$@ CONFIG_HEADERS= $(SHELL) ./config.status
-
 $(srcdir)/aclocal.m4: configure.in
        cd $(srcdir) && aclocal
 
 $(srcdir)/Makefile.in: Makefile.am configure.in
-       cd $(srcdir) && automake @ARGS@ Makefile
+       cd $(srcdir) && automake --gnits Makefile
 
 # For an explanation of the following Makefile rules, see node
 # `Automatic Remaking' in GNU Autoconf documentation.
index 296c234..85307e7 100755 (executable)
@@ -2490,7 +2490,7 @@ sub handle_configure
        }
 
        # Skip files not in this directory.
-       next unless &dirname ($local) eq $relative_dir;
+       next unless &dirname ($file) eq $relative_dir;
 
        # Skip the config header.
        next if $local eq $top_builddir . '/' . $config_name;
index b3f3ff5..6646ccb 100644 (file)
@@ -1,5 +1,6 @@
 Sat Dec  7 12:52:45 1996  Tom Tromey  <tromey@cygnus.com>
 
+       * remake2.test: New file.
        * output2.test: New file.
 
 Fri Dec  6 19:00:31 1996  Tom Tromey  <tromey@cygnus.com>
index cb29e87..3f02c27 100644 (file)
@@ -19,7 +19,7 @@ confsub.test primary.test primary2.test depend2.test spell3.test \
 comment2.test vpath.test symlink.test discover.test acinclude.test req.test \
 acsilent.test distdir.test lex2.test libobj4.test libobj5.test version.test \
 ranlib.test confvar.test confvar2.test stdlib.test cxxo.test colon2.test \
-colon3.test remake.test output.test output2.test
+colon3.test remake.test output.test output2.test remake2.test
 
 EXTRA_DIST = defs $(TESTS)
 
diff --git a/tests/remake2.test b/tests/remake2.test
new file mode 100755 (executable)
index 0000000..f2961d8
--- /dev/null
@@ -0,0 +1,20 @@
+#! /bin/sh
+
+# Make sure remaking rules in subdir are correct.
+
+. $srcdir/defs || exit 1
+
+cat > configure.in << 'END'
+PACKAGE=nonesuch
+VERSION=nonesuch
+AC_ARG_PROGRAM
+AC_PROG_INSTALL
+AC_OUTPUT(sub/Makefile)
+END
+
+mkdir sub
+: > sub/Makefile.am
+
+$AUTOMAKE || exit 1
+
+grep 'automake.*sub/Makefile' Makefile.in