Tue Aug 5 17:49:54 1997 Tom Tromey <tromey@cygnus.com>
+ * 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.
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;