Files
master/chapter06/automake.html
2015-05-23 18:50:06 +08:00

386 lines
13 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

Translated by H-mudcup
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content=
"application/xhtml+xml; charset=utf-8" />
<title>
6.45.&nbsp;Automake-1.15
</title>
<link rel="stylesheet" type="text/css" href="../stylesheets/lfs.css" />
<meta name="generator" content="DocBook XSL Stylesheets V1.78.1" />
<link rel="stylesheet" href="../stylesheets/lfs-print.css" type="text/css"
media="print" />
</head>
<body class="lfs" id="lfs-7.7-systemd">
<div class="navheader">
<h4>
Linux From Scratch - Version 7.7-systemd
</h4>
<h3>
Chapter&nbsp;6.&nbsp;安装基本的系统软件
</h3>
<ul>
<li class="prev">
<a accesskey="p" href="autoconf.html" title=
"Autoconf-2.69">上一页</a>
<p>
Autoconf-2.69
</p>
</li>
<li class="next">
<a accesskey="n" href="diffutils.html" title=
"Diffutils-3.3">下一页</a>
<p>
Diffutils-3.3
</p>
</li>
<li class="up">
<a accesskey="u" href="chapter06.html" title=
"Chapter&nbsp;6.&nbsp;Installing Basic System Software">返回</a>
</li>
<li class="home">
<a accesskey="h" href="../index.html" title=
"Linux From Scratch - Version 7.7-systemd">主页</a>
</li>
</ul>
</div>
<div class="wrap" lang="en" xml:lang="en">
<h1 class="sect1">
<a id="ch-system-automake" name="ch-system-automake"></a>6.45.
Automake-1.15
</h1>
<div class="package" lang="en" xml:lang="en">
<p>
软件包包含了生成可与 Autoconf 一同使用的 Makefile 的程序。
</p>
<div class="segmentedlist">
<div class="seglistitem">
<div class="seg">
<strong class="segtitle">大概编译时间:</strong>
<span class="segbody">小于 0.1 SBU (加上测试大概有 8.4 SBU</span>
</div>
<div class="seg">
<strong class="segtitle">所需磁盘空间:</strong>
<span class="segbody">109 MB</span>
</div>
</div>
</div>
</div>
<div class="installation" lang="en" xml:lang="en">
<h2 class="sect2">
6.45.1. Automake 的安装
</h2>
<p>
Automake 编译前的准备:
</p>
<pre class="userinput">
<kbd class=
"command">./configure --prefix=/usr --docdir=/usr/share/doc/automake-1.15</kbd>
</pre>
<p>
编译软件包:
</p>
<pre class="userinput">
<kbd class="command">make</kbd>
</pre>
<p>
有些测试会错误的链接到 flex 库的错误版本,
所以我们暂时先解决这个问题。还有,由于每个单独的测试之间会有延迟,
即使是在只有一个处理器的系统上也要使用 -j4 编译选项提高测试的速度。
对结果的测试:
</p>
<pre class="userinput">
<kbd class=
"command">sed -i "s:./configure:LEXLIB=/usr/lib/libfl.a &amp;:" t/lex-{clean,depend}-cxx.sh
make -j4 check</kbd>
</pre>
<p>
安装软件包:
</p>
<pre class="userinput">
<kbd class="command">make install</kbd>
</pre>
</div>
<div class="content" lang="en" xml:lang="en">
<h2 class="sect2">
<a id="contents-automake" name="contents-automake"></a>6.45.2.
关于 Automake 的内容
</h2>
<div class="segmentedlist">
<div class="seglistitem">
<div class="seg">
<strong class="segtitle">安装的程序:</strong>
<span class="segbody">aclocal, aclocal-1.15, automake,
automake-1.15, compile, config.guess, config.sub, depcomp,
install-sh, mdate-sh, missing, mkinstalldirs, py-compile, and
ylwrap</span>
</div>
<div class="seg">
<strong class="segtitle">安装的目录:</strong>
<span class="segbody">/usr/share/aclocal-1.15,
/usr/share/automake-1.15, and
/usr/share/doc/automake-1.15</span>
</div>
</div>
</div>
<div class="variablelist">
<h3>
简短描述
</h3>
<table border="0" class="variablelist">
<colgroup>
<col align="left" valign="top" />
<col />
</colgroup>
<tbody>
<tr>
<td>
<p>
<a id="aclocal" name="aclocal"></a><span class=
"term"><span class=
"command"><strong>aclocal</strong></span></span>
</p>
</td>
<td>
<p>
基于 <code class="filename">configure.in</code> 文件的内容
生成 <code class="filename">aclocal.m4</code> 文件
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="aclocalversion" name=
"aclocalversion"></a><span class="term"><span class=
"command"><strong>aclocal-1.15</strong></span></span>
</p>
</td>
<td>
<p>
<span class=
"command"><strong>aclocal</strong></span> 的硬链接
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="automake" name="automake"></a><span class=
"term"><span class=
"command"><strong>automake</strong></span></span>
</p>
</td>
<td>
<p>
一个从 <code class="filename">Makefile.am</code> 文件
自动生成 <code class="filename">Makefile.in</code> 文件的工具
[要生成一个软件包里所有的
<code class="filename">Makefile.in</code> 文件,在最上层的目录运行这个程序。
通过扫描 <code class="filename">configure.in</code>
文件,它能自动找到每个对应的 <code class="filename">Makefile.am</code> 文件,
并生成对应的 <code class="filename">Makefile.in</code> 文件。]
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="automake-version" name=
"automake-version"></a><span class="term"><span class=
"command"><strong>automake-1.15</strong></span></span>
</p>
</td>
<td>
<p>
<span class=
"command"><strong>automake</strong></span> 的硬链接
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="compile" name="compile"></a><span class=
"term"><span class=
"command"><strong>compile</strong></span></span>
</p>
</td>
<td>
<p>
包含了一些编译器
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="config.guess" name="config.guess"></a><span class=
"term"><span class=
"command"><strong>config.guess</strong></span></span>
</p>
</td>
<td>
<p>
试图估计已给出的构建、宿主或目标的结构的三段式命名的脚本
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="config.sub" name="config.sub"></a><span class=
"term"><span class=
"command"><strong>config.sub</strong></span></span>
</p>
</td>
<td>
<p>
一个配置确认子程序脚本
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="depcomp" name="depcomp"></a><span class=
"term"><span class=
"command"><strong>depcomp</strong></span></span>
</p>
</td>
<td>
<p>
一个在编译程序时除了输出必要信息还生成依赖信息的脚本
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="install-sh" name="install-sh"></a><span class=
"term"><span class=
"command"><strong>install-sh</strong></span></span>
</p>
</td>
<td>
<p>
一个安装程序、脚本或数据文件的脚本
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="mdate-sh" name="mdate-sh"></a><span class=
"term"><span class=
"command"><strong>mdate-sh</strong></span></span>
</p>
</td>
<td>
<p>
一个打印文件或目录被修改时间的脚本
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="missing" name="missing"></a><span class=
"term"><span class=
"command"><strong>missing</strong></span></span>
</p>
</td>
<td>
<p>
一个在安装过程中表现为丢失 GNU 程序通用的存根的脚本
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="mkinstalldirs" name=
"mkinstalldirs"></a><span class="term"><span class=
"command"><strong>mkinstalldirs</strong></span></span>
</p>
</td>
<td>
<p>
一个创建目录树的脚本
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="py-compile" name="py-compile"></a><span class=
"term"><span class=
"command"><strong>py-compile</strong></span></span>
</p>
</td>
<td>
<p>
编译一个 Python 程序
</p>
</td>
</tr>
<tr>
<td>
<p>
<a id="ylwrap" name="ylwrap"></a><span class=
"term"><span class=
"command"><strong>ylwrap</strong></span></span>
</p>
</td>
<td>
<p>
包含<span class=
"command"><strong>lex</strong></span> and <span class=
"command"><strong>yacc</strong></span>
</p>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div class="navfooter">
<div class="book">
<div class="titlepage">
<div class="author">
<span class="firstname">翻译团队:<a href="http://lctt.github.io/" target="_blank">LCTT</a></span>
<span class="surname">译者/校对:<a href="http://github.com/H-mudcup" target="_blank">H-mudcup</a>/</span>
</div>
</div>
</div>
<ul>
<li class="prev">
<a accesskey="p" href="autoconf.html" title=
"Autoconf-2.69">上一页</a>
<p>
Autoconf-2.69
</p>
</li>
<li class="next">
<a accesskey="n" href="diffutils.html" title=
"Diffutils-3.3">下一页</a>
<p>
Diffutils-3.3
</p>
</li>
<li class="up">
<a accesskey="u" href="chapter06.html" title=
"Chapter&nbsp;6.&nbsp;Installing Basic System Software">返回</a>
</li>
<li class="home">
<a accesskey="h" href="../index.html" title=
"Linux From Scratch - Version 7.7-systemd">主页</a>
</li>
</ul>
</div>
</body>
</html>