mm_unix.html
来自「perl教程」· HTML 代码 · 共 869 行 · 第 1/2 页
HTML
869 行
PERL_SRC, PERLRUN, PERLRUNINST, PREFIX, VERSION,
VERSION_SYM, XS_VERSION.</p>
</dd>
</li>
<dt><strong><a name="item_init_others">init_others</a></strong>
<dd>
<p>Initializes EXTRALIBS, BSLOADLIBS, LDLOADLIBS, LIBS, LD_RUN_PATH, LD,
OBJECT, BOOTDEP, PERLMAINCC, LDFROM, LINKTYPE, SHELL, NOOP,
FIRST_MAKEFILE, MAKEFILE_OLD, NOECHO, RM_F, RM_RF, TEST_F,
TOUCH, CP, MV, CHMOD, UMASK_NULL, ECHO, ECHO_N</p>
</dd>
</li>
<dt><strong><a name="item_init_linker">init_linker</a></strong>
<dd>
<p>Unix has no need of special linker flags.</p>
</dd>
</li>
<dt><strong><a name="item_init_perl">init_PERL</a></strong>
<dd>
<pre>
<span class="variable">$mm</span><span class="operator">-></span><span class="variable">init_PERL</span><span class="operator">;</span>
</pre>
</dd>
<dd>
<p>Called by init_main. Sets up ABSPERL, PERL, FULLPERL and all the
*PERLRUN* permutations.</p>
</dd>
<dd>
<pre>
PERL is allowed to be miniperl
FULLPERL must be a complete perl</pre>
</dd>
<dd>
<pre>
ABSPERL is PERL converted to an absolute path</pre>
</dd>
<dd>
<pre>
*PERLRUN contains everything necessary to run perl, find it's
libraries, etc...</pre>
</dd>
<dd>
<pre>
*PERLRUNINST is *PERLRUN + everything necessary to find the
modules being built.</pre>
</dd>
<dt><strong><a name="item_init_platform">init_platform</a></strong>
<dt><strong><a name="item_platform_constants">platform_constants</a></strong>
<dd>
<p>Add MM_Unix_VERSION.</p>
</dd>
</li>
<dt><strong><a name="item_init_perm">init_PERM</a></strong>
<dd>
<pre>
$mm->init_PERM</pre>
</dd>
<dd>
<p>Called by init_main. Initializes PERL_*</p>
</dd>
<dt><strong><a name="item_init_xs">init_xs</a></strong>
<dd>
<pre>
$mm->init_xs</pre>
</dd>
<dd>
<p>Sets up macros having to do with XS code. Currently just INST_STATIC,
INST_DYNAMIC and INST_BOOT.</p>
</dd>
<dt><strong><a name="item_install">install (o)</a></strong>
<dd>
<p>Defines the install target.</p>
</dd>
</li>
<dt><strong><a name="item_installbin">installbin (o)</a></strong>
<dd>
<p>Defines targets to make and to install EXE_FILES.</p>
</dd>
</li>
<dt><strong><a name="item_linkext">linkext (o)</a></strong>
<dd>
<p>Defines the linkext target which in turn defines the LINKTYPE.</p>
</dd>
</li>
<dt><strong><a name="item_lsdir">lsdir</a></strong>
<dd>
<p>Takes as arguments a directory name and a regular expression. Returns
all entries in the directory that match the regular expression.</p>
</dd>
</li>
<dt><strong><a name="item_macro">macro (o)</a></strong>
<dd>
<p>Simple subroutine to insert the macros defined by the macro attribute
into the Makefile.</p>
</dd>
</li>
<dt><strong><a name="item_makeaperl">makeaperl (o)</a></strong>
<dd>
<p>Called by staticmake. Defines how to write the Makefile to produce a
static new perl.</p>
</dd>
<dd>
<p>By default the Makefile produced includes all the static extensions in
the perl library. (Purified versions of library files, e.g.,
DynaLoader_pure_p1_c0_032.a are automatically ignored to avoid link errors.)</p>
</dd>
</li>
<dt><strong><a name="item_makefile">makefile (o)</a></strong>
<dd>
<p>Defines how to rewrite the Makefile.</p>
</dd>
</li>
<dt><strong><a name="item_maybe_command">maybe_command</a></strong>
<dd>
<p>Returns true, if the argument is likely to be a command.</p>
</dd>
</li>
<dt><strong><a name="item_needs_linking">needs_linking (o)</a></strong>
<dd>
<p>Does this module need linking? Looks into subdirectory objects (see
also <a href="#item_has_link_code"><code>has_link_code())</code></a></p>
</dd>
</li>
<dt><strong><a name="item_nicetext">nicetext</a></strong>
<dd>
<p>misnamed method (will have to be changed). The MM_Unix method just
returns the argument without further processing.</p>
</dd>
<dd>
<p>On VMS used to insure that colons marking targets are preceded by
space - most Unix Makes don't need this, but it's necessary under VMS
to distinguish the target delimiter from a colon appearing as part of
a filespec.</p>
</dd>
</li>
<dt><strong><a name="item_parse_abstract">parse_abstract</a></strong>
<dd>
<p>parse a file and return what you think is the ABSTRACT</p>
</dd>
</li>
<dt><strong><a name="item_parse_version">parse_version</a></strong>
<dd>
<p>parse a file and return what you think is $VERSION in this file set to.
It will return the string "undef" if it can't figure out what $VERSION
is. $VERSION should be for all to see, so our $VERSION or plain $VERSION
are okay, but my $VERSION is not.</p>
</dd>
</li>
<dt><strong><a name="item_pasthru">pasthru (o)</a></strong>
<dd>
<p>Defines the string that is passed to recursive make calls in
subdirectories.</p>
</dd>
</li>
<dt><strong><a name="item_perl_script">perl_script</a></strong>
<dd>
<p>Takes one argument, a file name, and returns the file name, if the
argument is likely to be a perl script. On MM_Unix this is true for
any ordinary, readable file.</p>
</dd>
</li>
<dt><strong><a name="item_perldepend">perldepend (o)</a></strong>
<dd>
<p>Defines the dependency from all *.h files that come with the perl
distribution.</p>
</dd>
</li>
<dt><strong><a name="item_perm_rw">perm_rw (o)</a></strong>
<dd>
<p>Returns the attribute <code>PERM_RW</code> or the string <code>644</code>.
Used as the string that is passed
to the <a href="../../lib/Pod/perlfunc.html#item_chmod"><code>chmod</code></a> command to set the permissions for read/writeable files.
MakeMaker chooses <code>644</code> because it has turned out in the past that
relying on the umask provokes hard-to-track bug reports.
When the return value is used by the perl function <a href="../../lib/Pod/perlfunc.html#item_chmod"><code>chmod</code></a>, it is
interpreted as an octal value.</p>
</dd>
</li>
<dt><strong><a name="item_perm_rwx">perm_rwx (o)</a></strong>
<dd>
<p>Returns the attribute <code>PERM_RWX</code> or the string <code>755</code>,
i.e. the string that is passed
to the <a href="../../lib/Pod/perlfunc.html#item_chmod"><code>chmod</code></a> command to set the permissions for executable files.
See also perl_rw.</p>
</dd>
</li>
<dt><strong><a name="item_pm_to_blib">pm_to_blib</a></strong>
<dd>
<p>Defines target that copies all files in the hash PM to their
destination and autosplits them. See <a href="../../lib/ExtUtils/Install.html#description">DESCRIPTION in the ExtUtils::Install manpage</a></p>
</dd>
</li>
<dt><strong><a name="item_post_constants">post_constants (o)</a></strong>
<dd>
<p>Returns an empty string per default. Dedicated to overrides from
within Makefile.PL after all constants have been defined.</p>
</dd>
</li>
<dt><strong><a name="item_post_initialize">post_initialize (o)</a></strong>
<dd>
<p>Returns an empty string per default. Used in Makefile.PLs to add some
chunk of text to the Makefile after the object is initialized.</p>
</dd>
</li>
<dt><strong><a name="item_postamble">postamble (o)</a></strong>
<dd>
<p>Returns an empty string. Can be used in Makefile.PLs to write some
text to the Makefile at the end.</p>
</dd>
</li>
<dt><strong><a name="item_ppd">ppd</a></strong>
<dd>
<p>Defines target that creates a PPD (Perl Package Description) file
for a binary distribution.</p>
</dd>
</li>
<dt><strong><a name="item_prefixify">prefixify</a></strong>
<dd>
<pre>
<span class="variable">$MM</span><span class="operator">-></span><span class="variable">prefixify</span><span class="operator">(</span><span class="variable">$var</span><span class="operator">,</span> <span class="variable">$prefix</span><span class="operator">,</span> <span class="variable">$new_prefix</span><span class="operator">,</span> <span class="variable">$default</span><span class="operator">);</span>
</pre>
</dd>
<dd>
<p>Using either $MM->{uc $var} || $Config{lc $var}, it will attempt to
replace it's $prefix with a $new_prefix.</p>
</dd>
<dd>
<p>Should the $prefix fail to match <em>AND</em> a PREFIX was given as an
argument to <code>WriteMakefile()</code> it will set it to the $new_prefix +
$default. This is for systems whose file layouts don't neatly fit into
our ideas of prefixes.</p>
</dd>
<dd>
<p>This is for heuristics which attempt to create directory structures
that mirror those of the installed perl.</p>
</dd>
<dd>
<p>For example:</p>
</dd>
<dd>
<pre>
<span class="variable">$MM</span><span class="operator">-></span><span class="variable">prefixify</span><span class="operator">(</span><span class="string">'installman1dir'</span><span class="operator">,</span> <span class="string">'/usr'</span><span class="operator">,</span> <span class="string">'/home/foo'</span><span class="operator">,</span> <span class="string">'man/man1'</span><span class="operator">);</span>
</pre>
</dd>
<dd>
<p>this will attempt to remove '/usr' from the front of the
$MM->{INSTALLMAN1DIR} path (initializing it to $Config{installman1dir}
if necessary) and replace it with '/home/foo'. If this fails it will
simply use '/home/foo/man/man1'.</p>
</dd>
<dt><strong><a name="item_processpl">processPL (o)</a></strong>
<dd>
<p>Defines targets to run *.PL files.</p>
</dd>
</li>
<dt><strong><a name="item_quote_paren">quote_paren</a></strong>
<dd>
<p>Backslashes parentheses <code>()</code> in command line arguments.
Doesn't handle recursive Makefile <code>$(...)</code> constructs,
but handles simple ones.</p>
</dd>
</li>
<dt><strong><a name="item_replace_manpage_separator">replace_manpage_separator</a></strong>
<dd>
<pre>
<span class="keyword">my</span> <span class="variable">$man_name</span> <span class="operator">=</span> <span class="variable">$MM</span><span class="operator">-></span><span class="variable">replace_manpage_separator</span><span class="operator">(</span><span class="variable">$file_path</span><span class="operator">);</span>
</pre>
</dd>
<dd>
<p>Takes the name of a package, which may be a nested package, in the
form 'Foo/Bar.pm' and replaces the slash with <code>::</code> or something else
safe for a man page file name. Returns the replacement.</p>
</dd>
<dt><strong><a name="item_cd">cd</a></strong>
<dt><strong><a name="item_oneliner">oneliner</a></strong>
<dt><strong><a name="item_quote_literal">quote_literal</a></strong>
<dt><strong><a name="item_escape_newlines">escape_newlines</a></strong>
<dt><strong><a name="item_max_exec_len">max_exec_len</a></strong>
<dd>
<p>Using POSIX::ARG_MAX. Otherwise falling back to 4096.</p>
</dd>
</li>
<dt><strong><a name="item_static">static (o)</a></strong>
<dd>
<p>Defines the static target.</p>
</dd>
</li>
<dt><strong><a name="item_static_lib">static_lib (o)</a></strong>
<dd>
<p>Defines how to produce the *.a (or equivalent) files.</p>
</dd>
</li>
<dt><strong><a name="item_staticmake">staticmake (o)</a></strong>
<dd>
<p>Calls makeaperl.</p>
</dd>
</li>
<dt><strong><a name="item_subdir_x">subdir_x (o)</a></strong>
<dd>
<p>Helper subroutine for subdirs</p>
</dd>
</li>
<dt><strong><a name="item_subdirs">subdirs (o)</a></strong>
<dd>
<p>Defines targets to process subdirectories.</p>
</dd>
</li>
<dt><strong><a name="item_test">test (o)</a></strong>
<dd>
<p>Defines the test targets.</p>
</dd>
</li>
<dt><strong><a name="item_test_via_harness">test_via_harness (override)</a></strong>
<dd>
<p>For some reason which I forget, Unix machines like to have
PERL_DL_NONLAZY set for tests.</p>
</dd>
</li>
<dt><strong><a name="item_test_via_script">test_via_script (override)</a></strong>
<dd>
<p>Again, the PERL_DL_NONLAZY thing.</p>
</dd>
</li>
<dt><strong><a name="item_tools_other">tools_other (o)</a></strong>
<dd>
<pre>
<span class="keyword">my</span> <span class="variable">$make_frag</span> <span class="operator">=</span> <span class="variable">$MM</span><span class="operator">-></span><span class="variable">tools_other</span><span class="operator">;</span>
</pre>
</dd>
<dd>
<p>Returns a make fragment containing definitions for the macros <a href="#item_init_others"><code>init_others()</code></a>
initializes.</p>
</dd>
<dt><strong><a name="item_tool_xsubpp">tool_xsubpp (o)</a></strong>
<dd>
<p>Determines typemaps, xsubpp version, prototype behaviour.</p>
</dd>
</li>
<dt><strong><a name="item_all_target">all_target</a></strong>
<dd>
<p>Build man pages, too</p>
</dd>
</li>
<dt><strong><a name="item_top_targets">top_targets (o)</a></strong>
<dd>
<p>Defines the targets all, subdirs, config, and O_FILES</p>
</dd>
</li>
<dt><strong><a name="item_writedoc">writedoc</a></strong>
<dd>
<p>Obsolete, deprecated method. Not used since Version 5.21.</p>
</dd>
</li>
<dt><strong><a name="item_xs_c">xs_c (o)</a></strong>
<dd>
<p>Defines the suffix rules to compile XS files to C.</p>
</dd>
</li>
<dt><strong><a name="item_xs_cpp">xs_cpp (o)</a></strong>
<dd>
<p>Defines the suffix rules to compile XS files to C++.</p>
</dd>
</li>
<dt><strong><a name="item_xs_o">xs_o (o)</a></strong>
<dd>
<p>Defines suffix rules to go from XS to object files directly. This is
only intended for broken make implementations.</p>
</dd>
</li>
</dl>
<p>
</p>
<hr />
<h1><a name="see_also">SEE ALSO</a></h1>
<p><a href="../../lib/ExtUtils/MakeMaker.html">the ExtUtils::MakeMaker manpage</a></p>
</body>
</html>
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?