1
0

automake.xml 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142
  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-automake" role="wrap">
  8. <?dbhtml filename="automake.html"?>
  9. <sect1info condition="script">
  10. <productname>automake</productname>
  11. <productnumber>&automake-version;</productnumber>
  12. <address>&automake-url;</address>
  13. </sect1info>
  14. <title>Automake-&automake-version;</title>
  15. <indexterm zone="ch-system-automake">
  16. <primary sortas="a-Automake">Automake</primary>
  17. </indexterm>
  18. <sect2 role="package">
  19. <title/>
  20. <para>Automake 软件包包含自动生成 Makefile,以便和 Autoconf
  21. 一同使用的程序。</para>
  22. <segmentedlist>
  23. <segtitle>&buildtime;</segtitle>
  24. <segtitle>&diskspace;</segtitle>
  25. <seglistitem>
  26. <seg>&automake-ch6-sbu;</seg>
  27. <seg>&automake-ch6-du;</seg>
  28. </seglistitem>
  29. </segmentedlist>
  30. </sect2>
  31. <sect2 role="installation">
  32. <title>安装 Automake</title>
  33. <para>准备安装 Automake:</para>
  34. <screen><userinput remap="configure">./configure --prefix=/usr --docdir=/usr/share/doc/automake-&automake-version;</userinput></screen>
  35. <para>编译该软件包:</para>
  36. <screen><userinput remap="make">make</userinput></screen>
  37. <para> 由于单个测试点中存在的内部时延,即使仅有一个处理器,
  38. 也应该使用 make 命令的 -j4 选项加速测试。输入以下命令测试编译结果:
  39. </para>
  40. <!--<screen><userinput remap="test">sed -i "s:./configure:LEXLIB=/usr/lib/libfl.a &amp;:" t/lex-{clean,depend}-cxx.sh
  41. make -j4 check</userinput></screen>-->
  42. <screen><userinput remap="test">make -j4 check</userinput></screen>
  43. <para>已知在 LFS 环境中,一项名为 subobj.sh 的测试可能失败。</para>
  44. <para>安装该软件包:</para>
  45. <screen><userinput remap="install">make install</userinput></screen>
  46. </sect2>
  47. <sect2 id="contents-automake" role="content">
  48. <title>Automake 的内容</title>
  49. <segmentedlist>
  50. <segtitle>安装的程序</segtitle>
  51. <segtitle>安装的目录</segtitle>
  52. <seglistitem>
  53. <seg>aclocal, aclocal-&am-minor-version; (与 aclocal 互为硬链接), automake, 以及
  54. automake-&am-minor-version; (与 automake 互为硬链接) </seg>
  55. <seg>/usr/share/aclocal-&am-minor-version;, /usr/share/automake-&am-minor-version;, 以及
  56. /usr/share/doc/automake-&automake-version;</seg>
  57. </seglistitem>
  58. </segmentedlist>
  59. <variablelist>
  60. <bridgehead renderas="sect3">简要描述</bridgehead>
  61. <?dbfo list-presentation="list"?>
  62. <?dbhtml list-presentation="table"?>
  63. <varlistentry id="aclocal">
  64. <term><command>aclocal</command></term>
  65. <listitem>
  66. <para>根据 <filename>configure.in</filename> 文件内容
  67. 生成 <filename>aclocal.m4</filename>。</para>
  68. <indexterm zone="ch-system-automake aclocal">
  69. <primary sortas="b-aclocal">aclocal</primary>
  70. </indexterm>
  71. </listitem>
  72. </varlistentry>
  73. <varlistentry id="aclocalversion">
  74. <term><command>aclocal-&am-minor-version;</command></term>
  75. <listitem>
  76. <para>指向 <command>aclocal</command> 的硬链接</para>
  77. <indexterm zone="ch-system-automake aclocalversion">
  78. <primary sortas="b-aclocal-&am-minor-version;">aclocal-&am-minor-version;</primary>
  79. </indexterm>
  80. </listitem>
  81. </varlistentry>
  82. <varlistentry id="automake">
  83. <term><command>automake</command></term>
  84. <listitem>
  85. <para>一个根据
  86. <filename>Makefile.am</filename> 文件,自动生成
  87. <filename>Makefile.in</filename> 文件的工具
  88. [为了创建软件包中的所有
  89. <filename>Makefile.in</filename> 文件,在顶层目录运行该程序。
  90. 它通过扫描 <filename>configure.in</filename> 文件,找到每个适用的
  91. <filename>Makefile.am</filename> 文件,并生成对应的
  92. <filename>Makefile.in</filename> 文件。]</para>
  93. <indexterm zone="ch-system-automake automake">
  94. <primary sortas="b-automake">automake</primary>
  95. </indexterm>
  96. </listitem>
  97. </varlistentry>
  98. <varlistentry id="automake-version">
  99. <term><command>automake-&am-minor-version;</command></term>
  100. <listitem>
  101. <para>指向 <command>automake</command> 的硬链接</para>
  102. <indexterm zone="ch-system-automake automake-version">
  103. <primary sortas="b-automake-&am-minor-version;">automake-&am-minor-version;</primary>
  104. </indexterm>
  105. </listitem>
  106. </varlistentry>
  107. </variablelist>
  108. </sect2>
  109. </sect1>