[673b0d8] | 1 | <?xml version="1.0" encoding="ISO-8859-1"?>
|
---|
[b06ca36] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
[673b0d8] | 4 | <!ENTITY % general-entities SYSTEM "../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 | ]>
|
---|
[9652249] | 7 | <sect1 id="ch-tools-make" role="wrap">
|
---|
[7b82580] | 8 | <?dbhtml filename="make.html"?>
|
---|
[6370fa6] | 9 |
|
---|
[e747759] | 10 | <sect1info condition="script">
|
---|
| 11 | <productname>make</productname>
|
---|
| 12 | <productnumber>&make-version;</productnumber>
|
---|
| 13 | <address>&make-url;</address>
|
---|
| 14 | </sect1info>
|
---|
| 15 |
|
---|
[7b82580] | 16 | <title>Make-&make-version;</title>
|
---|
[81fd230] | 17 |
|
---|
[7b82580] | 18 | <indexterm zone="ch-tools-make">
|
---|
| 19 | <primary sortas="a-Make">Make</primary>
|
---|
| 20 | <secondary>tools</secondary>
|
---|
| 21 | </indexterm>
|
---|
[673b0d8] | 22 |
|
---|
[7b82580] | 23 | <sect2 role="package">
|
---|
| 24 | <title/>
|
---|
[673b0d8] | 25 |
|
---|
[d9441360] | 26 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
[7b82580] | 27 | href="../chapter06/make.xml"
|
---|
| 28 | xpointer="xpointer(/sect1/sect2[1]/para[1])"/>
|
---|
[81fd230] | 29 |
|
---|
[7b82580] | 30 | <segmentedlist>
|
---|
| 31 | <segtitle>&buildtime;</segtitle>
|
---|
| 32 | <segtitle>&diskspace;</segtitle>
|
---|
[73aedd1d] | 33 |
|
---|
[7b82580] | 34 | <seglistitem>
|
---|
[e4a5635] | 35 | <seg>&make-ch5-sbu;</seg>
|
---|
| 36 | <seg>&make-ch5-du;</seg>
|
---|
[7b82580] | 37 | </seglistitem>
|
---|
| 38 | </segmentedlist>
|
---|
[73aedd1d] | 39 |
|
---|
[7b82580] | 40 | </sect2>
|
---|
| 41 |
|
---|
| 42 | <sect2 role="installation">
|
---|
| 43 | <title>Installation of Make</title>
|
---|
| 44 |
|
---|
[869b0966] | 45 | <para>First, work around an error caused by glibc-2.27:</para>
|
---|
| 46 |
|
---|
| 47 | <screen><userinput remap="pre">sed -i '211,217 d; 219,229 d; 232 d' glob/glob.c</userinput></screen>
|
---|
| 48 |
|
---|
[7b82580] | 49 | <para>Prepare Make for compilation:</para>
|
---|
[73aedd1d] | 50 |
|
---|
[05e908ed] | 51 | <screen><userinput remap="configure">./configure --prefix=/tools --without-guile</userinput></screen>
|
---|
| 52 |
|
---|
| 53 | <variablelist>
|
---|
| 54 | <title>The meaning of the configure option:</title>
|
---|
| 55 |
|
---|
| 56 | <varlistentry>
|
---|
| 57 | <term><parameter>--without-guile</parameter></term>
|
---|
| 58 | <listitem>
|
---|
| 59 | <para>This ensures that Make-&make-version; won't link against Guile libraries, which
|
---|
| 60 | may be present on the host system, but won't be available within the
|
---|
| 61 | <command>chroot</command> environment in the next chapter.</para>
|
---|
| 62 | </listitem>
|
---|
| 63 | </varlistentry>
|
---|
| 64 | </variablelist>
|
---|
[73aedd1d] | 65 |
|
---|
[7b82580] | 66 | <para>Compile the package:</para>
|
---|
[73aedd1d] | 67 |
|
---|
[0445a3d] | 68 | <screen><userinput remap="make">make</userinput></screen>
|
---|
[73aedd1d] | 69 |
|
---|
[1fa0f19] | 70 | <para>Compilation is now complete. As discussed earlier, running the test
|
---|
| 71 | suite is not mandatory for the temporary tools here in this chapter. To run
|
---|
| 72 | the Make test suite anyway, issue the following command:</para>
|
---|
[0445a3d] | 73 |
|
---|
| 74 | <screen><userinput remap="test">make check</userinput></screen>
|
---|
[73aedd1d] | 75 |
|
---|
[7b82580] | 76 | <para>Install the package:</para>
|
---|
[73aedd1d] | 77 |
|
---|
[0445a3d] | 78 | <screen><userinput remap="install">make install</userinput></screen>
|
---|
[73aedd1d] | 79 |
|
---|
[7b82580] | 80 | </sect2>
|
---|
[6370fa6] | 81 |
|
---|
[7b82580] | 82 | <sect2 role="content">
|
---|
| 83 | <title/>
|
---|
[81fd230] | 84 |
|
---|
[7b82580] | 85 | <para>Details on this package are located in
|
---|
| 86 | <xref linkend="contents-make" role="."/></para>
|
---|
| 87 |
|
---|
| 88 | </sect2>
|
---|
[81fd230] | 89 |
|
---|
[7b82580] | 90 | </sect1>
|
---|