ylwrap fix from jim meyering
authorTom Tromey <tromey@redhat.com>
Sun, 1 Jun 1997 19:18:16 +0000 (19:18 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 1 Jun 1997 19:18:16 +0000 (19:18 +0000)
ChangeLog
automake.in

index 3c19828..f9ceaaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Sun Jun  1 13:16:05 1997  Tom Tromey  <tromey@cygnus.com>
+
+       * automake.in (output_yacc_build_rule): Never move y.tab.c over
+       the .h file.  From Jim Meyering.
+
 Thu May 29 23:16:02 1997  Tom Tromey  <tromey@cygnus.com>
 
        * automake.in (scan_one_configure_file): Avoid defining ACLOCAL,
index 200a831..4e92d99 100755 (executable)
@@ -965,7 +965,7 @@ sub output_yacc_build_rule
     push (@suffixes, $yacc_suffix, $c_suffix, '.h');
 
     # Generate rule for c/c++ and header file.  Probably should only
-    # do header if `yacc -d' is run.
+    # do header if `yacc -d' is run.  But how can we determine that?
     foreach $suffix ($c_suffix, '.h')
     {
        $output_rules .= "$yacc_suffix$suffix:\n\t";
@@ -973,7 +973,7 @@ sub output_yacc_build_rule
        if ($use_ylwrap)
        {
            $output_rules .= ('$(SHELL) $(YLWRAP)'
-                             . ' "$(YACC)" $< y.tab.c $*' . $suffix
+                             . ' "$(YACC)" $< y.tab.c $*' . $c_suffix
                              . ' y.tab.h $*.h -- $(YFLAGS)');
        }
        else