X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=pod%2Fperlxstut.pod;h=0ad1b1038dbbafa624303312e8a3869c3ef57ba9;hb=a9bc755754f0db5e848e65dfd2e63a96af50ffd4;hp=afb018b28ece1c3d567dad0b16fc55a261c407e4;hpb=a60067777be62ee91d1318f9ae26d9ed713245de;p=p5sagit%2Fp5-mst-13.2.git diff --git a/pod/perlxstut.pod b/pod/perlxstut.pod index afb018b..0ad1b10 100644 --- a/pod/perlxstut.pod +++ b/pod/perlxstut.pod @@ -490,12 +490,13 @@ And finally create a file Makefile.PL that looks like this: use ExtUtils::MakeMaker; $Verbose = 1; WriteMakefile( - 'NAME' => 'Mytest2::mylib', - 'clean' => {'FILES' => 'libmylib$(LIB_EXT)'}, + NAME => 'Mytest2::mylib', + SKIP => [qw(all static static_lib dynamic dynamic_lib)], + clean => {'FILES' => 'libmylib$(LIB_EXT)'}, ); - sub MY::postamble { + sub MY::top_targets { ' all :: static @@ -533,7 +534,8 @@ and a new replacement subroutine too: } (Note: Most makes will require that there be a tab character that indents -the line "cd mylib && $(MAKE)".) +the line "cd mylib && $(MAKE)", similarly for the Makefile in the +subdirectory.) Let's also fix the MANIFEST file so that it accurately reflects the contents of our extension. The single line that says "mylib" should be replaced by