- filter_subdir_mk($dir_prefix, $dir_suffix, $dir_name,
- $var_prefix, \%targets);
+ if ($node->[2]) {
+ filter_subdir_mk($dir_prefix, $dir_suffix, $dir_name,
+ $var_prefix, \%targets);
+ } else {
+ my $sdmk = "${dir_prefix}Subdir.sd.mk";
+ if (stat $sdmk) {
+ die "$sdmk unexpectedly exists (${dir_prefix} not mentioned)";
+ } elsif ($!==ENOENT) {
+ } else {
+ die "stat $sdmk: $!";
+ }
+ }