In order to stop ExtUtils::MakeMaker from indexing two
directories called "tmpl" and "build", add the following
to WriteMakefile:
WriteMakefile (
# Other parts skipped here
META_MERGE => {
no_index => {
directory => [qw/tmpl build/],
}
}
This adds the information to the file META.yml which
ExtUtils::MakeMaker creates when you do make dist. This
only works for ExtUtils::MakeMaker from version 6.46 onwards, so you
might need to add
use ExtUtils::MakeMaker 6.46;at the top as well.