@common_sometimes =
(
"version.texi", "aclocal.m4", "acconfig.h", "config.h.top",
- "config.h.bot", "stamp-h.in", "mdate-sh"
+ "config.h.bot", "stamp-h.in", "mdate-sh", "ansi2knr.c",
+ "ansi2knr.1"
);
$USAGE = " --amdir=DIR directory storing config files
push (@suffixes, '.c', '.o');
if (defined $contents{'@kr@'})
{
- $obj = '${kr}.o';
+ $obj = '.${kr}o';
+ push (@suffixes, '._c', '._o');
+
+ &require_file ('ansi2knr.c');
+ &require_file ('ansi2knr.1');
+
+ $output_vars .= &file_contents ('kr-vars');
$output_rules .= &file_contents ('compile-kr');
- push (@suffixes, '.krc', '.krh', '.kro');
}
local (@sources, @objects);
}
}
}
+ elsif ($_ eq '@kr@')
+ {
+ # Special case: this means we want automatic
+ # de-ANSI-fication. FIXME think of a better way.
+ $contents{'@kr@'} = 1;
+ }
elsif (m/^ *([a-zA-Z_.][a-zA-Z0-9_.]*) *:/)
{
# Found a rule.