From 5a34f53d8b21322136317523a21dd969579d5faf Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 6 Aug 1997 02:39:09 +0000 Subject: [PATCH] make _.c file depend on ansi2knr --- ChangeLog | 3 +++ automake.in | 4 +++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 701f277e..2c666ab5 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,8 @@ Tue Aug 5 17:49:54 1997 Tom Tromey + * automake.in (handle_yacc_lex_cxx): Make each _.c file depend on + ansi2knr. + * automake.in (handle_yacc_lex_cxx): Fix for makes which don't allow $< in non-suffix rules. From Akim Demaille. diff --git a/automake.in b/automake.in index 09e978f1..795af92a 100755 --- a/automake.in +++ b/automake.in @@ -920,7 +920,9 @@ sub handle_yacc_lex_cxx local ($base, @objects); foreach $base (sort (keys %de_ansi_files)) { - $output_rules .= $base . "_.c: $base.c\n\t" + # Each _.c file must depend on ansi2knr; otherwise it + # might be used in a parallel build before it is built. + $output_rules .= $base . "_.c: $base.c $(ANSI2KNR)\n\t" . '$(ANSI2KNR) ' . $base . '.c ' . $base . "_.c\n"; push (@objects, $base . '_.o'); push (@objects, $base . '_.lo') if $seen_libtool; -- 2.43.5