make.xml 2.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
  3. "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
  4. <!ENTITY % general-entities SYSTEM "../general.ent">
  5. %general-entities;
  6. ]>
  7. <sect1 id="ch-system-make" role="wrap">
  8. <?dbhtml filename="make.html"?>
  9. <sect1info condition="script">
  10. <productname>make</productname>
  11. <productnumber>&make-version;</productnumber>
  12. <address>&make-url;</address>
  13. </sect1info>
  14. <title>Make-&make-version;</title>
  15. <indexterm zone="ch-system-make">
  16. <primary sortas="a-Make">Make</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Make 软件包包含用于编译软件包的程序。</para>
  21. <segmentedlist>
  22. <segtitle>&buildtime;</segtitle>
  23. <segtitle>&diskspace;</segtitle>
  24. <seglistitem>
  25. <seg>&make-ch6-sbu;</seg>
  26. <seg>&make-ch6-du;</seg>
  27. </seglistitem>
  28. </segmentedlist>
  29. </sect2>
  30. <sect2 role="installation">
  31. <title>安装 Make</title>
  32. <para>再一次地,绕过 glibc-2.27 和更新版本导致的一个问题:</para>
  33. <screen><userinput remap="pre">sed -i '211,217 d; 219,229 d; 232 d' glob/glob.c</userinput></screen>
  34. <para>准备安装 Make:</para>
  35. <screen><userinput remap="configure">./configure --prefix=/usr</userinput></screen>
  36. <para>编译该软件包:</para>
  37. <screen><userinput remap="make">make</userinput></screen>
  38. <para>测试套件需要知道 perl 支持文件的位置。
  39. 我们使用环境变量提供该位置,运行以下命令测试编译结果:</para>
  40. <screen><userinput remap="test">make PERL5LIB=$PWD/tests/ check</userinput></screen>
  41. <para>安装该软件包:</para>
  42. <screen><userinput remap="install">make install</userinput></screen>
  43. </sect2>
  44. <sect2 id="contents-make" role="content">
  45. <title>Make 的内容</title>
  46. <segmentedlist>
  47. <segtitle>安装的程序</segtitle>
  48. <seglistitem>
  49. <seg>make</seg>
  50. </seglistitem>
  51. </segmentedlist>
  52. <variablelist>
  53. <bridgehead renderas="sect3">简要描述</bridgehead>
  54. <?dbfo list-presentation="list"?>
  55. <?dbhtml list-presentation="table"?>
  56. <varlistentry id="make">
  57. <term><command>make</command></term>
  58. <listitem>
  59. <para>自动确定软件包中需要(重新)构建的部分,并执行对应命令
  60. </para>
  61. <indexterm zone="ch-system-make make">
  62. <primary sortas="b-make">make</primary>
  63. </indexterm>
  64. </listitem>
  65. </varlistentry>
  66. </variablelist>
  67. </sect2>
  68. </sect1>