* automake.in (lang_yacc_finish): Always use `.h' as suffix for
authorTom Tromey <tromey@redhat.com>
Fri, 26 Mar 1999 22:44:28 +0000 (22:44 +0000)
committerTom Tromey <tromey@redhat.com>
Fri, 26 Mar 1999 22:44:28 +0000 (22:44 +0000)
yacc header file.  From Ralf Corsepius.

ChangeLog
automake.in

index 8c1d934..21f4b3d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
 1999-03-26  Tom Tromey  <tromey@cygnus.com>
 
+       * automake.in (lang_yacc_finish): Always use `.h' as suffix for
+       yacc header file.  From Ralf Corsepius.
+
        * Makefile.in: Rebuilt.
        * Makefile.am: Updated to reflect removal of TAR subst.
        * automake.texi (Options): Document dist-bzip2.
index e6eac19..5ad7dbe 100755 (executable)
@@ -4679,7 +4679,7 @@ sub lang_yacc_finish
        # no way to determine that.  FIXME: examine AM_YFLAGS?
        $file =~ /^(.*)\.(y|yy|y\+\+|yxx|ypp)$/;
        $base = $1;
-       ($hname = $2) =~ tr/y/h/;
+       $hname = '.h';          # Always use `.h' for header file.
        ($cname = $2) =~ tr/y/c/;
        $output_rules .= "${base}.${hname}: ${base}.${cname}\n";