summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIlya Zakharevich <ilya@math.ohio-state.edu>1997-01-05 02:39:45 -0500
committerChip Salzenberg <chip@atlantic.net>1997-01-16 07:24:00 +1200
commit8227f81cbd3d53a745747c4247824562383badae (patch)
treead488d1ac81f08dfddff5d2f65d379938fc4b417
parent5b23ba8bf333ecdd596fc7a34132e421bebc54a2 (diff)
downloadperl-8227f81cbd3d53a745747c4247824562383badae.tar.gz
Fix example #4 in perlXStut
Subject: Example4 in perlXStut The patch below makes Example 4 of perlXStut work. Thanks for Jeff for suggestions. Enjoy, p5p-msgid: <199701050739.CAA11112@monk.mps.ohio-state.edu>
-rw-r--r--pod/perlxstut.pod10
1 files changed, 6 insertions, 4 deletions
diff --git a/pod/perlxstut.pod b/pod/perlxstut.pod
index afb018b28e..0ad1b1038d 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