2001-01-15 Tom Tromey <tromey@redhat.com>
+ * automake.in (handle_single_transform_list): Don't print rule
+ here when source is in subdir and object is not. Fixes
+ subobj4.test.
+
* automake.in (handle_single_transform_list): Correctly compute
$nonansi_obj. Fixes cxxansi.test.
}
# If doing dependency tracking, then we can't print
- # the rule. Also, if we have a subdir object, we need
- # to generate an explicit rule.
+ # the rule. If we have a subdir object, we need to
+ # generate an explicit rule. Actually, in any case
+ # where the object is not in `.' we need a special
+ # rule. The per-object rules in this case are
+ # generated later, by add_depend2.
if (($use_dependencies
&& $rule ne ''
&& $language_map{$lang . '-autodep'} ne 'no')
- || ($r == $LANG_SUBDIR && $directory ne ''))
+ || $directory ne '')
{
$rule = '';
local ($obj_sans_ext) = substr ($object, 0,