diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-04-05 11:45:36 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-04-05 11:45:36 +0000 |
commit | 9fdbfc113dab517e9adaec9b2bdb304801f9ed20 (patch) | |
tree | 77be8b63febaf484bb055549adbf6ae1aaf13863 | |
parent | 9f1f04a17d93e8b8afa26e6ca9144732df879671 (diff) | |
download | perl-9fdbfc113dab517e9adaec9b2bdb304801f9ed20.tar.gz |
The manpages don't have to be built by MakeMaker for the
core modules in ext/. Disable this in Devel::PPPort (not
up-to-date on CPAN), Unicode::Normalize (the CPAN version
uses a different Makefile.PL anyway) and XS::APItest
(not CPANized.)
p4raw-id: //depot/perl@19145
-rw-r--r-- | ext/Devel/PPPort/Makefile.PL | 14 | ||||
-rw-r--r-- | ext/Unicode/Normalize/Makefile.PL | 12 | ||||
-rw-r--r-- | ext/XS/APItest/Makefile.PL | 1 |
3 files changed, 26 insertions, 1 deletions
diff --git a/ext/Devel/PPPort/Makefile.PL b/ext/Devel/PPPort/Makefile.PL index f4cf6f5996..e86ed3b46a 100644 --- a/ext/Devel/PPPort/Makefile.PL +++ b/ext/Devel/PPPort/Makefile.PL @@ -1,5 +1,16 @@ use ExtUtils::MakeMaker; +unless($ENV{PERL_CORE}) { + $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV; +} +if ($ENV{PERL_CORE}) { + # Pods will be built by installman. + @coreopts = ( MAN3PODS => {} ); +} +else { + @coreopts = (); +} + WriteMakefile( NAME => "Devel::PPPort", DISTNAME => "Devel-PPPort", @@ -12,5 +23,6 @@ WriteMakefile( OBJECT => '$(BASEEXT)$(OBJ_EXT) $(O_FILES)', XSPROTOARG => '-noprototypes', 'dist' => { COMPRESS=>"gzip", SUFFIX=>"gz" }, - 'clean' => { FILES => qw($(H_FILES))} + 'clean' => { FILES => qw($(H_FILES))}, + @coreopts, ); diff --git a/ext/Unicode/Normalize/Makefile.PL b/ext/Unicode/Normalize/Makefile.PL index 2b834d7dae..d37906a2f0 100644 --- a/ext/Unicode/Normalize/Makefile.PL +++ b/ext/Unicode/Normalize/Makefile.PL @@ -5,6 +5,17 @@ use ExtUtils::MakeMaker; do "mkheader"; +unless($ENV{PERL_CORE}) { + $ENV{PERL_CORE} = 1 if grep { $_ eq 'PERL_CORE=1' } @ARGV; +} +if ($ENV{PERL_CORE}) { + # Pods will be built by installman. + @coreopts = ( MAN3PODS => {} ); +} +else { + @coreopts = (); +} + WriteMakefile( 'NAME' => 'Unicode::Normalize', 'VERSION_FROM' => 'Normalize.pm', # finds $VERSION @@ -12,4 +23,5 @@ WriteMakefile( (ABSTRACT_FROM => 'Normalize.pm', # retrieve abstract from module AUTHOR => 'SADAHIRO Tomoyuki <SADAHIRO@cpan.org>') : ()), clean => {FILES=> 'unfcan.h unfcmb.h unfcmp.h unfcpt.h unfexc.h'}, + @coreopts, ); diff --git a/ext/XS/APItest/Makefile.PL b/ext/XS/APItest/Makefile.PL index 6e6cb496ff..4ff940394a 100644 --- a/ext/XS/APItest/Makefile.PL +++ b/ext/XS/APItest/Makefile.PL @@ -14,6 +14,7 @@ WriteMakefile( 'INC' => '-I.', # e.g., '-I. -I/usr/include/other' # Un-comment this if you add C files to link with later: # 'OBJECT' => '$(O_FILES)', # link all the C files too + MAN3PODS => {}, # Pods will be built by installman. ); sub MY::install { "install ::\n" }; |