A quick and dirty solution (until next automake update) is likely to just add the new target prefix hardcoded, as done with "_build":
foreach (@buf_allfiles_sorted) { my $dummy = $_; my $srcdir = $SRCDIR;
$srcdir =~ s#^../##; $dummy =~ s#^$srcdir/../##; $dummy =~ s#^$srcdir/##; $dummy =~ s#_build/##; ++ $dummy =~ s#_build/sub/##;
A quick and dirty solution (until next automake update) is likely to just add the new target prefix hardcoded, as done with "_build":
foreach (@buf_allfiles_ sorted)
{
my $dummy = $_;
my $srcdir = $SRCDIR;
$srcdir =~ s#^../##;
$dummy =~ s#^$srcdir/../##;
$dummy =~ s#^$srcdir/##;
$dummy =~ s#_build/##;
++ $dummy =~ s#_build/sub/##;