In Makefile.PL:
use inc::Module::Install; stardoc_make_pod; all_from 'lib/Foo.pm'; stardoc_clean_pod;
The stardoc_make_pod
command generates a pod file from every .pm file in your lib/ directory that contains Stardoc documentation.
The stardoc_clean_pod
command tells make clean
to remove the generated pod files.