]> sourceware.org Git - automake.git/commitdiff
ylwrap fix from jim meyering
authorTom Tromey <tromey@redhat.com>
Sun, 1 Jun 1997 19:18:15 +0000 (19:18 +0000)
committerTom Tromey <tromey@redhat.com>
Sun, 1 Jun 1997 19:18:15 +0000 (19:18 +0000)
ChangeLog
automake.in

index 3c19828d441a14492b4a71fad0bede90925ca95a..f9ceaaa8dc75cf2853f807c7a6a7ffb05557dccb 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 200a83186c068bfc3f71510b65957d8677d0aec4..4e92d99aeb7c8b5e0b336391ef124eb858d656ce 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
This page took 0.047749 seconds and 5 git commands to generate.