From: Tom Tromey Date: Wed, 26 Nov 1997 20:53:53 +0000 (+0000) Subject: yacc fixlet X-Git-Tag: Release-1-2d~3 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=706ea0da506ffc0f13624dca94a1123e91d78ac3;p=thirdparty%2Fautomake.git yacc fixlet --- diff --git a/ChangeLog b/ChangeLog index 3788411a3..506d153e1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Wed Nov 26 13:41:57 1997 Tom Tromey + * 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. diff --git a/automake.in b/automake.in index a498778dc..5aeacdf4f 100755 --- a/automake.in +++ b/automake.in @@ -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");