Replace Perl dependency with a specialy-controlled sub-make.