From: Tom Tromey Date: Wed, 6 Aug 1997 02:39:12 +0000 (+0000) Subject: make _.c file depend on ansi2knr X-Git-Tag: Release-1-2b~29 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e2fbc2b48cbb7a696dbb281de55615b4d5d4be95;p=thirdparty%2Fautomake.git make _.c file depend on ansi2knr --- diff --git a/ChangeLog b/ChangeLog index 701f277ee..2c666ab51 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 09e978f13..795af92a3 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;