]> sourceware.org Git - automake.git/commitdiff
yacc fixlet
authorTom Tromey <tromey@redhat.com>
Wed, 26 Nov 1997 20:53:41 +0000 (20:53 +0000)
committerTom Tromey <tromey@redhat.com>
Wed, 26 Nov 1997 20:53:41 +0000 (20:53 +0000)
ChangeLog
automake.in

index 3788411a353aeb40d9813d807d4aad85e0875fee..506d153e1549b0466c8a5fc420b869b8ee09def9 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 Wed Nov 26 13:41:57 1997  Tom Tromey  <tromey@cygnus.com>
 
+       * automake.in (output_yacc_build_rule): Don't overwrite .h file in
+       non-ylwrap case.
+
        * tags.am (ID): Scan lisp files.
        (TAGS): Make tags for lisp files.
 
index a498778dc6fffed77056e62bf636e5a73745878d..5aeacdf4f60d25c8593fa0f2c9ab939c9807995c 100755 (executable)
@@ -1006,7 +1006,8 @@ sub output_yacc_build_rule
        }
        else
        {
-           $output_rules .= ('$(YACC) $(YFLAGS) $< && mv y.tab.c $@' . "\n"
+           $output_rules .= ('$(YACC) $(YFLAGS) $< && mv y.tab.c $*'
+                             . $c_suffix . "\n"
                              . "\tif test -f y.tab.h; then \\\n"
                              . "\tif cmp -s y.tab.h \$*.h; then rm -f y.tab.h; else mv y.tab.h \$*.h; fi; \\\n"
                          . "\telse :; fi");
This page took 0.046509 seconds and 5 git commands to generate.