12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- <?xml version="1.0" encoding="UTF-8"?>
- <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
- "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
- <!ENTITY % general-entities SYSTEM "../general.ent">
- %general-entities;
- ]>
- <sect1 id="ch-system-make" role="wrap">
- <?dbhtml filename="make.html"?>
- <sect1info condition="script">
- <productname>make</productname>
- <productnumber>&make-version;</productnumber>
- <address>&make-url;</address>
- </sect1info>
- <title>Make-&make-version;</title>
- <indexterm zone="ch-system-make">
- <primary sortas="a-Make">Make</primary>
- </indexterm>
- <sect2 role="package">
- <title/>
- <para>Make 软件包包含用于编译软件包的程序。</para>
- <segmentedlist>
- <segtitle>&buildtime;</segtitle>
- <segtitle>&diskspace;</segtitle>
- <seglistitem>
- <seg>&make-ch6-sbu;</seg>
- <seg>&make-ch6-du;</seg>
- </seglistitem>
- </segmentedlist>
- </sect2>
- <sect2 role="installation">
- <title>安装 Make</title>
- <para>再一次地,绕过 glibc-2.27 和更新版本导致的一个问题:</para>
- <screen><userinput remap="pre">sed -i '211,217 d; 219,229 d; 232 d' glob/glob.c</userinput></screen>
- <para>准备安装 Make:</para>
- <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
- <para>编译该软件包:</para>
- <screen><userinput remap="make">make</userinput></screen>
- <para>测试套件需要知道 perl 支持文件的位置。
- 我们使用环境变量提供该位置,运行以下命令测试编译结果:</para>
- <screen><userinput remap="test">make PERL5LIB=$PWD/tests/ check</userinput></screen>
- <para>安装该软件包:</para>
- <screen><userinput remap="install">make install</userinput></screen>
- </sect2>
- <sect2 id="contents-make" role="content">
- <title>Make 的内容</title>
- <segmentedlist>
- <segtitle>安装的程序</segtitle>
- <seglistitem>
- <seg>make</seg>
- </seglistitem>
- </segmentedlist>
- <variablelist>
- <bridgehead renderas="sect3">简要描述</bridgehead>
- <?dbfo list-presentation="list"?>
- <?dbhtml list-presentation="table"?>
- <varlistentry id="make">
- <term><command>make</command></term>
- <listitem>
- <para>自动确定软件包中需要(重新)构建的部分,并执行对应命令
- </para>
- <indexterm zone="ch-system-make make">
- <primary sortas="b-make">make</primary>
- </indexterm>
- </listitem>
- </varlistentry>
- </variablelist>
- </sect2>
- </sect1>
|