⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 extutils::makemaker.3

📁 视频监控网络部分的协议ddns,的模块的实现代码,请大家大胆指正.
💻 3
📖 第 1 页 / 共 5 页
字号:
.\" Automatically generated by Pod::Man 2.16 (Pod::Simple 3.05).\".\" Standard preamble:.\" ========================================================================.de Sh \" Subsection heading.br.if t .Sp.ne 5.PP\fB\\$1\fR.PP...de Sp \" Vertical space (when we can't use .PP).if t .sp .5v.if n .sp...de Vb \" Begin verbatim text.ft CW.nf.ne \\$1...de Ve \" End verbatim text.ft R.fi...\" Set up some character translations and predefined strings.  \*(-- will.\" give an unbreakable dash, \*(PI will give pi, \*(L" will give a left.\" double quote, and \*(R" will give a right double quote.  \*(C+ will.\" give a nicer C++.  Capital omega is used to do unbreakable dashes and.\" therefore won't be available.  \*(C` and \*(C' expand to `' in nroff,.\" nothing in troff, for use with C<>..tr \(*W-.ds C+ C\v'-.1v'\h'-1p'\s-2+\h'-1p'+\s0\v'.1v'\h'-1p'.ie n \{\.    ds -- \(*W-.    ds PI pi.    if (\n(.H=4u)&(1m=24u) .ds -- \(*W\h'-12u'\(*W\h'-12u'-\" diablo 10 pitch.    if (\n(.H=4u)&(1m=20u) .ds -- \(*W\h'-12u'\(*W\h'-8u'-\"  diablo 12 pitch.    ds L" "".    ds R" "".    ds C` "".    ds C' ""'br\}.el\{\.    ds -- \|\(em\|.    ds PI \(*p.    ds L" ``.    ds R" '''br\}.\".\" Escape single quotes in literal strings from groff's Unicode transform..ie \n(.g .ds Aq \(aq.el       .ds Aq '.\".\" If the F register is turned on, we'll generate index entries on stderr for.\" titles (.TH), headers (.SH), subsections (.Sh), items (.Ip), and index.\" entries marked with X<> in POD.  Of course, you'll have to process the.\" output yourself in some meaningful fashion..ie \nF \{\.    de IX.    tm Index:\\$1\t\\n%\t"\\$2"...    nr % 0.    rr F.\}.el \{\.    de IX...\}.\".\" Accent mark definitions (@(#)ms.acc 1.5 88/02/08 SMI; from UCB 4.2)..\" Fear.  Run.  Save yourself.  No user-serviceable parts..    \" fudge factors for nroff and troff.if n \{\.    ds #H 0.    ds #V .8m.    ds #F .3m.    ds #[ \f1.    ds #] \fP.\}.if t \{\.    ds #H ((1u-(\\\\n(.fu%2u))*.13m).    ds #V .6m.    ds #F 0.    ds #[ \&.    ds #] \&.\}.    \" simple accents for nroff and troff.if n \{\.    ds ' \&.    ds ` \&.    ds ^ \&.    ds , \&.    ds ~ ~.    ds /.\}.if t \{\.    ds ' \\k:\h'-(\\n(.wu*8/10-\*(#H)'\'\h"|\\n:u".    ds ` \\k:\h'-(\\n(.wu*8/10-\*(#H)'\`\h'|\\n:u'.    ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'^\h'|\\n:u'.    ds , \\k:\h'-(\\n(.wu*8/10)',\h'|\\n:u'.    ds ~ \\k:\h'-(\\n(.wu-\*(#H-.1m)'~\h'|\\n:u'.    ds / \\k:\h'-(\\n(.wu*8/10-\*(#H)'\z\(sl\h'|\\n:u'.\}.    \" troff and (daisy-wheel) nroff accents.ds : \\k:\h'-(\\n(.wu*8/10-\*(#H+.1m+\*(#F)'\v'-\*(#V'\z.\h'.2m+\*(#F'.\h'|\\n:u'\v'\*(#V'.ds 8 \h'\*(#H'\(*b\h'-\*(#H'.ds o \\k:\h'-(\\n(.wu+\w'\(de'u-\*(#H)/2u'\v'-.3n'\*(#[\z\(de\v'.3n'\h'|\\n:u'\*(#].ds d- \h'\*(#H'\(pd\h'-\w'~'u'\v'-.25m'\f2\(hy\fP\v'.25m'\h'-\*(#H'.ds D- D\\k:\h'-\w'D'u'\v'-.11m'\z\(hy\v'.11m'\h'|\\n:u'.ds th \*(#[\v'.3m'\s+1I\s-1\v'-.3m'\h'-(\w'I'u*2/3)'\s-1o\s+1\*(#].ds Th \*(#[\s+2I\s-2\h'-\w'I'u*3/5'\v'-.3m'o\v'.3m'\*(#].ds ae a\h'-(\w'a'u*4/10)'e.ds Ae A\h'-(\w'A'u*4/10)'E.    \" corrections for vroff.if v .ds ~ \\k:\h'-(\\n(.wu*9/10-\*(#H)'\s-2\u~\d\s+2\h'|\\n:u'.if v .ds ^ \\k:\h'-(\\n(.wu*10/11-\*(#H)'\v'-.4m'^\v'.4m'\h'|\\n:u'.    \" for low resolution devices (crt and lpr).if \n(.H>23 .if \n(.V>19 \\{\.    ds : e.    ds 8 ss.    ds o a.    ds d- d\h'-1'\(ga.    ds D- D\h'-1'\(hy.    ds th \o'bp'.    ds Th \o'LP'.    ds ae ae.    ds Ae AE.\}.rm #[ #] #H #V #F C.\" ========================================================================.\".IX Title "ExtUtils::MakeMaker 3".TH ExtUtils::MakeMaker 3 "2007-12-18" "perl v5.10.0" "Perl Programmers Reference Guide".\" For nroff, turn off justification.  Always turn off hyphenation; it makes.\" way too many mistakes in technical documents..if n .ad l.nh.SH "NAME"ExtUtils::MakeMaker \- Create a module Makefile.SH "SYNOPSIS".IX Header "SYNOPSIS".Vb 1\&  use ExtUtils::MakeMaker;\&\&  WriteMakefile( ATTRIBUTE => VALUE [, ...] );.Ve.SH "DESCRIPTION".IX Header "DESCRIPTION"This utility is designed to write a Makefile for an extension modulefrom a Makefile.PL. It is based on the Makefile.SH model provided byAndy Dougherty and the perl5\-porters..PPIt splits the task of generating the Makefile into several subroutinesthat can be individually overridden.  Each subroutine returns the textit wishes to have written to the Makefile..PPMakeMaker is object oriented. Each directory below the currentdirectory that contains a Makefile.PL is treated as a separateobject. This makes it possible to write an unlimited number ofMakefiles with a single invocation of \fIWriteMakefile()\fR..Sh "How To Write A Makefile.PL".IX Subsection "How To Write A Makefile.PL"See ExtUtils::MakeMaker::Tutorial..PPThe long answer is the rest of the manpage :\-).Sh "Default Makefile Behaviour".IX Subsection "Default Makefile Behaviour"The generated Makefile enables the user of the extension to invoke.PP.Vb 4\&  perl Makefile.PL # optionally "perl Makefile.PL verbose"\&  make\&  make test        # optionally set TEST_VERBOSE=1\&  make install     # See below.Ve.PPThe Makefile to be produced may be altered by adding arguments of theform \f(CW\*(C`KEY=VALUE\*(C'\fR. E.g..PP.Vb 1\&  perl Makefile.PL INSTALL_BASE=~.Ve.PPOther interesting targets in the generated Makefile are.PP.Vb 5\&  make config     # to check if the Makefile is up\-to\-date\&  make clean      # delete local temp files (Makefile gets renamed)\&  make realclean  # delete derived files (including ./blib)\&  make ci         # check in all the files in the MANIFEST file\&  make dist       # see below the Distribution Support section.Ve.Sh "make test".IX Subsection "make test"MakeMaker checks for the existence of a file named \fItest.pl\fR in thecurrent directory and if it exists it execute the script with theproper set of perl \f(CW\*(C`\-I\*(C'\fR options..PPMakeMaker also checks for any files matching glob(\*(L"t/*.t\*(R"). It willexecute all matching files in alphabetical order via theTest::Harness module with the \f(CW\*(C`\-I\*(C'\fR switches set correctly..PPIf you'd like to see the raw output of your tests, set the\&\f(CW\*(C`TEST_VERBOSE\*(C'\fR variable to true..PP.Vb 1\&  make test TEST_VERBOSE=1.Ve.Sh "make testdb".IX Subsection "make testdb"A useful variation of the above is the target \f(CW\*(C`testdb\*(C'\fR. It runs thetest under the Perl debugger (see perldebug). If the file\&\fItest.pl\fR exists in the current directory, it is used for the test..PPIf you want to debug some other testfile, set the \f(CW\*(C`TEST_FILE\*(C'\fR variablethusly:.PP.Vb 1\&  make testdb TEST_FILE=t/mytest.t.Ve.PPBy default the debugger is called using \f(CW\*(C`\-d\*(C'\fR option to perl. If youwant to specify some other option, set the \f(CW\*(C`TESTDB_SW\*(C'\fR variable:.PP.Vb 1\&  make testdb TESTDB_SW=\-Dx.Ve.Sh "make install".IX Subsection "make install"make alone puts all relevant files into directories that are named bythe macros \s-1INST_LIB\s0, \s-1INST_ARCHLIB\s0, \s-1INST_SCRIPT\s0, \s-1INST_MAN1DIR\s0 and\&\s-1INST_MAN3DIR\s0.  All these default to something below ./blib if you are\&\fInot\fR building below the perl source directory. If you \fIare\fRbuilding below the perl source, \s-1INST_LIB\s0 and \s-1INST_ARCHLIB\s0 default to\&../../lib, and \s-1INST_SCRIPT\s0 is not defined..PPThe \fIinstall\fR target of the generated Makefile copies the files foundbelow each of the INST_* directories to their INSTALL*counterparts. Which counterparts are chosen depends on the setting of\&\s-1INSTALLDIRS\s0 according to the following table:.PP.Vb 2\&                                 INSTALLDIRS set to\&                           perl        site          vendor\&\&                 PERLPREFIX      SITEPREFIX          VENDORPREFIX\&  INST_ARCHLIB   INSTALLARCHLIB  INSTALLSITEARCH     INSTALLVENDORARCH\&  INST_LIB       INSTALLPRIVLIB  INSTALLSITELIB      INSTALLVENDORLIB\&  INST_BIN       INSTALLBIN      INSTALLSITEBIN      INSTALLVENDORBIN\&  INST_SCRIPT    INSTALLSCRIPT   INSTALLSITESCRIPT   INSTALLVENDORSCRIPT\&  INST_MAN1DIR   INSTALLMAN1DIR  INSTALLSITEMAN1DIR  INSTALLVENDORMAN1DIR\&  INST_MAN3DIR   INSTALLMAN3DIR  INSTALLSITEMAN3DIR  INSTALLVENDORMAN3DIR.Ve.PPThe \s-1INSTALL\s0... macros in turn default to their \f(CW%Config\fR($Config{installprivlib}, \f(CW$Config\fR{installarchlib}, etc.) counterparts..PPYou can check the values of these variables on your system with.PP.Vb 1\&    perl \*(Aq\-V:install.*\*(Aq.Ve.PPAnd to check the sequence in which the library directories aresearched by perl, run.PP.Vb 1\&    perl \-le \*(Aqprint join $/, @INC\*(Aq.Ve.PPSometimes older versions of the module you're installing live in otherdirectories in \f(CW@INC\fR.  Because Perl loads the first version of a module it finds, not the newest, you might accidentally get one of these olderversions even after installing a brand new version.  To delete \fIall otherversions of the module you're installing\fR (not simply older ones) set the\&\f(CW\*(C`UNINST\*(C'\fR variable..PP.Vb 1\&    make install UNINST=1.Ve.Sh "\s-1INSTALL_BASE\s0".IX Subsection "INSTALL_BASE"\&\s-1INSTALL_BASE\s0 can be passed into Makefile.PL to change where yourmodule will be installed.  \s-1INSTALL_BASE\s0 is more like what everyoneelse calls \*(L"prefix\*(R" than \s-1PREFIX\s0 is..PPTo have everything installed in your home directory, do the following..PP.Vb 2\&    # Unix users, INSTALL_BASE=~ works fine\&    perl Makefile.PL INSTALL_BASE=/path/to/your/home/dir.Ve.PPLike \s-1PREFIX\s0, it sets several INSTALL* attributes at once.  Unlike\&\s-1PREFIX\s0 it is easy to predict where the module will end up.  Theinstallation pattern looks like this:.PP.Vb 6\&    INSTALLARCHLIB     INSTALL_BASE/lib/perl5/$Config{archname}\&    INSTALLPRIVLIB     INSTALL_BASE/lib/perl5\&    INSTALLBIN         INSTALL_BASE/bin\&    INSTALLSCRIPT      INSTALL_BASE/bin\&    INSTALLMAN1DIR     INSTALL_BASE/man/man1\&    INSTALLMAN3DIR     INSTALL_BASE/man/man3.Ve.PP\&\s-1INSTALL_BASE\s0 in MakeMaker and \f(CW\*(C`\-\-install_base\*(C'\fR in Module::Build (asof 0.28) install to the same location.  If you want MakeMaker andModule::Build to install to the same location simply set \s-1INSTALL_BASE\s0and \f(CW\*(C`\-\-install_base\*(C'\fR to the same location..PP\&\s-1INSTALL_BASE\s0 was added in 6.31..Sh "\s-1PREFIX\s0 and \s-1LIB\s0 attribute".IX Subsection "PREFIX and LIB attribute"\&\s-1PREFIX\s0 and \s-1LIB\s0 can be used to set several INSTALL* attributes in onego.  Here's an example for installing into your home directory..PP.Vb 2\&    # Unix users, PREFIX=~ works fine\&    perl Makefile.PL PREFIX=/path/to/your/home/dir.Ve.PPThis will install all files in the module under your home directory,with man pages and libraries going into an appropriate place (usually~/man and ~/lib).  How the exact location is determined is complicatedand depends on how your Perl was configured.  \s-1INSTALL_BASE\s0 works morelike what other build systems call \*(L"prefix\*(R" than \s-1PREFIX\s0 and werecommend you use that instead..PPAnother way to specify many \s-1INSTALL\s0 directories with a singleparameter is \s-1LIB\s0..PP.Vb 1\&    perl Makefile.PL LIB=~/lib.Ve.PPThis will install the module's architecture-independent files into~/lib, the architecture-dependent files into ~/lib/$archname.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -