+2000-08-28 Tom Tromey <tromey@cygnus.com>
+
+ * automake.in (yacc, yaccxx, lex, lexxx): Set `derived-autodep'
+ key.
+ (register_language): Default the `derived-autodep' option.
+ (handle_single_transform_list): Add to %dep_files if language has
+ `derived-autodep' set. Re-fixes lex4.test.
+
2000-08-27 Tom Tromey <tromey@cygnus.com>
* automake.in (handle_single_transform_list): Only add to
'h', 'H', 'hxx', 'h++', 'hh', 'hpp', 'inc');
# For now, yacc and lex can't be handled on a per-exe basis.
-®ister_language ('yacc', 'ansi-p=1',
+®ister_language ('yacc', 'ansi-p=1', 'derived-autodep=yes',
'y');
-®ister_language ('yaccxx', 'linker=CXXLINK',
+®ister_language ('yaccxx', 'linker=CXXLINK', 'derived-autodep=yes',
'y++', 'yy', 'yxx', 'ypp');
-®ister_language ('lex', 'ansi-p=1',
+®ister_language ('lex', 'ansi-p=1', 'derived-autodep=yes',
'l');
-®ister_language ('lexxx', 'linker=CXXLINK',
+®ister_language ('lexxx', 'linker=CXXLINK', 'derived-autodep=yes',
'l++', 'll', 'lxx', 'lpp');
®ister_language ('asm',
# Transform .o or $o file into .P file (for automatic
# dependency code).
- if ($lang && $language_map{$lang . '-autodep'} ne 'no')
+ if ($lang
+ && ($language_map{$lang . '-autodep'} ne 'no'
+ || $language_map{$lang . '-derived-autodep'} eq 'yes'))
{
local ($depfile) = $object;
$depfile =~ s/\.([^.]*)$/.P$1/;
$language_map{$language . '-ansi-p'} = 0;
$language_map{$language . '-linker'} = '';
$language_map{$language . '-autodep'} = 'no';
+ $language_map{$language . '-derived-autodep'} = 'no';
local ($iter);
foreach $iter (@options)