From 32845884a8905e1229553243a26a99127e52d842 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 1 Jun 1997 19:18:15 +0000 Subject: [PATCH] ylwrap fix from jim meyering --- ChangeLog | 5 +++++ automake.in | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 3c19828d..f9ceaaa8 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Sun Jun 1 13:16:05 1997 Tom Tromey + + * 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 * automake.in (scan_one_configure_file): Avoid defining ACLOCAL, diff --git a/automake.in b/automake.in index 200a8318..4e92d99a 100755 --- a/automake.in +++ b/automake.in @@ -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 -- 2.43.5