This file is indexed.

/usr/share/doc/HOWTO/ja-html/Software-Building-HOWTO-3.html is in doc-linux-ja-html 2006.05.25-1.1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2 Final//EN">
<HTML>
<HEAD>
 <META NAME="GENERATOR" CONTENT="LinuxDoc-Tools 0.9.21">
 <TITLE>Building and Installing Software Packages for Linux: Make $B$N;HMQ(B</TITLE>
 <LINK HREF="Software-Building-HOWTO-4.html" REL=next>
 <LINK HREF="Software-Building-HOWTO-2.html" REL=previous>
 <LINK HREF="Software-Building-HOWTO.html#toc3" REL=contents>
</HEAD>
<BODY>
<A HREF="Software-Building-HOWTO-4.html">$B<!$N%Z!<%8(B</A>
<A HREF="Software-Building-HOWTO-2.html">$BA0$N%Z!<%8(B</A>
<A HREF="Software-Building-HOWTO.html#toc3">$BL\<!$X(B</A>
<HR>
<H2><A NAME="s3">3.</A> <A HREF="Software-Building-HOWTO.html#toc3">Make $B$N;HMQ(B</A></H2>

<P><CODE>Makefile</CODE> $B$O9=C[$NCJ3,$G80$H$J$k%U%!%$%k$G$9!#(BMakefile $B$N:G$b(B
$BC1=c$J;H$$J}$O!"!V%P%$%J%j!W$D$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$B$H(B
<CODE>xmkmf</CODE> $B$N:Y$+$$F0:n$K$D$$$F$O(B man $B%Z!<%8$rFI$s$G$/$@$5$$!#(B</P>
<P><CODE>xmkmf</CODE> $B$d(B <CODE>make</CODE> $B$O(B root $B$G<B9T$9$k$3$H$,I,MW$J>l9g$,$"(B
$B$k$3$H$KCm0U$7$F$/$@$5$$!#FC$K!"(B<CODE>make install</CODE> $B$r<B9T$7$F(B
<CODE>/usr/bin</CODE> $B$d(B <CODE>/usr/local/bin</CODE> $B%G%#%l%/%H%j$K%P%$%J%j(B
$B%U%!%$%k$r0\F0$5$;$k>l9g$O$=$&$G$9!#(Broot $B8"8B$r;}$?$J$$IaDL$N%f!<%6$K(B
$B$O%7%9%F%`%G%#%l%/%H%j$X$N=q$-9~$_8"8B$,$J$$$N$G!"(Bmake $B$r;HMQ$9$k$H$*(B
$B$=$i$/(B<EM>$B=q$-9~$_5qH]$N%(%i!<(B(write access denied)</EM>$B$,=P$k$G$7$g$&!#(B
$B$^$?!"%P%$%J%j%U%!%$%k$N<B9T5v2D$,E,@Z$J%f!<%6$KM?$($i$l$F$$$k$+$I$&$+(B
$B$b3NG'$7$F$/$@$5$$!#(B</P>
<P><B>xmkmf</B> $B$O(B <CODE>Imakefile</CODE> $B$r;H$C$F!"%7%9%F%`$K9g$C$?(B
<B>Makefile</B> $B$r?7$7$/:n$j$^$9!#DL>o$O(B <B>-a</B> $B%*%W%7%g%s$rIU(B
$B$1$F(B <B>xmkmf</B> $B$r<B9T$7!"(B
<EM>make Makefiles, make includes, make depend</EM> $B$r<+F0E*$K9T$o$;$^$9!#(B
$B$3$l$K$h$jJQ?t$N@_Dj$d!"%3%s%Q%$%i$d%j%s%+$KM?$($k%i%$%V%i%j$N0LCV$N(B
$BDj5A$,9T$o$l$^$9!#>l9g$K$h$C$F$O!"(B<CODE>Imakefile</CODE> $B$,$J$/!"(B
$B$=$NBe$o$j$KF1MM$N@_Dj$r9T$&$?$a$N(B <CODE>INSTALL</CODE> $B%9%/%j%W%H$d(B
<CODE>configure</CODE> $B%9%/%j%W%H$,IU$$$F$$$k$3$H$b$"$j$^$9!#$3$N:]$NCm0U(B
$B$G$9$,!"(B<CODE>configure</CODE> $B$r<B9T$9$k>l9g$K$O!"3N<B$K%+%l%s%H%G%#%l%/%H%j(B
$B$N(B <CODE>configure</CODE> $B%9%/%j%W%H$r<B9T$9$k$?$a$K(B <CODE>./configure</CODE>
$B$H$7$F<B9T$9$Y$-$G$9!#BgDq$N>l9g!"%$%s%9%H!<%k$N<j=g$r@bL@$7$?(B
<CODE>README</CODE>$B%U%!%$%k$,%Q%C%1!<%8$KF~$C$F$$$^$9!#(B</P>
<P><CODE>xmkmf</CODE> $B$d2?$i$+$N%$%s%9%H!<%k%9%/%j%W%H$,:n@.$7$?(B
<CODE>Makefile</CODE> $B$r<B:]$K8+$F>\$7$/E@8!$9$k$H$h$$$G$7$g$&!#(B
Makefile $B$ODL>o!"$"$J$?$N%7%9%F%`$K9g$o$;$F@5$7$/@_Dj$5$l$F$$$k$O$:$G(B
$B$9$,!";~$H$7$F<j:n6H$G(B Makefile $B$r!V$$$8$C$?$j!W!"4V0c$$$rD>$9I,MW$KGw(B
$B$i$l$k$3$H$,$"$j$^$9!#(B</P>
<P>$B$G$-$?$F$N%P%$%J%j$rE,@Z$J%7%9%F%`%G%#%l%/%H%j$K%$%s%9%H!<%k$9$k$K$O!"(B
$BIaDL$O(B root $B$K$J$C$F(B <B>make install</B> $B$7$^$9!#:G6a$N%G%#%9%H%j%S%e!<%7%g%s(B
$B$G$O!"%7%9%F%`A4BN$G;H$&%P%$%J%j$rCV$/$?$a$N0lHLE*$J%G%#%l%/%H%j$O(B
<CODE>/usr/bin</CODE>, <CODE>/usr/X11R6/bin</CODE>, <CODE>/usr/local/bin</CODE> $B$G(B
$B$9!#?7$7$$%Q%C%1!<%8$rF~$l$k$N$KE,@Z$J%G%#%l%/%H%j$O(B <CODE>/usr/local/bin</CODE>
$B$G!"$=$&$7$F$*$1$P?7$7$/F~$l$?ItJ,$H85!9(B Linux $B$K%$%s%9%H!<%k$5$l$F$$(B
$B$?ItJ,$rJ,$1$F$*$1$^$9!#(B</P>
<P>$B$b$H$b$H>&MQ(B UNIX $BMQ$rBP>]$K$7$F$$$?%Q%C%1!<%8$O!"(B<CODE>/opt</CODE> $BEy$N8+(B
$B47$l$J$$%G%#%l%/%H%j$K%$%s%9%H!<%k$7$h$&$H$9$k$+$b$7$l$^$;$s!#$b$A$m$s!"(B
$B%$%s%9%H!<%k@h$N%G%#%l%/%H%j$,B8:_$7$F$$$J$1$l$P!"%(%i!<$K$J$j$^$9!#(B
$B$3$l$r2sHr$9$k:G$b4JC1$JJ}K!$O!"(Broot $B$K$J$C$F(B <CODE>/opt</CODE> $B%G%#%l%/%H%j(B
$B$r:n$C$F!"$=$3$K%Q%C%1!<%8$r%$%s%9%H!<%k$7!"(B<CODE>PATH</CODE> $B4D6-JQ?t$K(B
$B$=$N%G%#%l%/%H%j$rDI2C$9$k$3$H$G$9!#JL$N$d$jJ}$H$7$F$O!"(B
<CODE>/usr/local/bin</CODE> $B$K%7%s%\%j%C%/%j%s%/$rD%$C$F$b$+$^$$$^$;$s!#(B</P>
<P>$B$7$?$,$C$F!"0lHLE*$J%$%s%9%H!<%k$N<j=g$O0J2<$N$h$&$K$J$j$^$9(B:
<UL>
<LI><CODE>README</CODE> $B%U%!%$%k$dB>$NE,Ev$J%I%-%e%a%s%H$rFI$_$^$9!#(B</LI>
<LI><B>xmkmf -a</B> $B$^$?$O(B <CODE>INSTALL</CODE> $B$d(B <CODE>configure</CODE> $B$H$$$C$?%9%/%j%W%H$r<B9T$7$^$9!#(B</LI>
<LI><CODE>Makefile</CODE> $B$r%A%'%C%/$7$^$9!#(B</LI>
<LI>$BI,MW$K1~$8$F!"(B<B>make clean</B>, <B>make Makefiles</B>,
<B>make includes</B>, <B>make depend</B> $B$r<B9T$7$^$9!#(B</LI>
<LI><B>make</B> $B$r<B9T$7$^$9!#(B</LI>
<LI>$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$3$l$r<B9T$9$k$H!"EvA3$J$,$i%G%P%C(B
$B%0$K$O;H$($J$/$J$j$^$9!#(B
</LI>
<LI>
<A HREF="http://sunsite.auc.dk/pack/">Pack Distribution Project</A> $B$O!"@hDx$^$G$N@bL@$H$OJL$N%"%W%m!<%A$G%=%U%H%&%'%"%Q%C%1!<%8(B
$B$N%"!<%+%$%V$r:n$l$k$h$&$K$7$h$&$H$7$F$$$^$9!#$3$N%"%W%m!<%A$O!"$P$i$P(B
$B$i$N(B<EM>$B%3%l%/%7%g%s%G%#%l%/%H%j(B</EM>$B$K%$%s%9%H!<%k$5$l$?%U%!%$%k$X$N(B
$B%7%s%\%j%C%/%j%s%/$r(B Python $B%9%/%j%W%H72$r;H$C$F4IM}$9$k$H$$$&$b$N$G$9!#(B
$B$3$N%"%W%m!<%A$G$b%"!<%+%$%V$O(B <EM>tarball</EM> $B$G$9$,!"$3$l$i$O(B
<CODE>/coll</CODE> $B%G%#%l%/%H%j$d(B <CODE>/pack</CODE> $B%G%#%l%/%H%j$K(B
$B%$%s%9%H!<%k$5$l$^$9!#$3$l$i$N%G%#%9%H%j%S%e!<%7%g%s$N$I$l$+$r$A$g$C$H(B
$B;n$7$F$_$k$K$b!"(B<EM>$B%Q%C%/%3%l%/%7%g%s(B(Pack-Collection)</EM>$B$r>e5-$N(B
$B%5%$%H$+$iF~<j$9$kI,MW$,$"$k$G$7$g$&!#(B</LI>
</UL>
</P>


<HR>
<A HREF="Software-Building-HOWTO-4.html">$B<!$N%Z!<%8(B</A>
<A HREF="Software-Building-HOWTO-2.html">$BA0$N%Z!<%8(B</A>
<A HREF="Software-Building-HOWTO.html#toc3">$BL\<!$X(B</A>
</BODY>
</HTML>