.\" -*- mode: troff; coding: utf-8 -*- .\" Automatically generated by Pod::Man 5.01 (Pod::Simple 3.43) .\" .\" Standard preamble: .\" ======================================================================== .de Sp \" Vertical space (when we can't use .PP) .if t .sp .5v .if n .sp .. .de Vb \" Begin verbatim text .ft CW .nf .ne \\$1 .. .de Ve \" End verbatim text .ft R .fi .. .\" \*(C` and \*(C' are quotes in nroff, nothing in troff, for use with C<>. .ie n \{\ . ds C` "" . ds C' "" 'br\} .el\{\ . ds C` . ds C' 'br\} .\" .\" Escape single quotes in literal strings from groff's Unicode transform. .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" .\" If the F register is >0, we'll generate index entries on stderr for .\" titles (.TH), headers (.SH), subsections (.SS), items (.Ip), and index .\" entries marked with X<> in POD. Of course, you'll have to process the .\" output yourself in some meaningful fashion. .\" .\" Avoid warning from groff about undefined register 'F'. .de IX .. .nr rF 0 .if \n(.g .if rF .nr rF 1 .if (\n(rF:(\n(.g==0)) \{\ . if \nF \{\ . de IX . tm Index:\\$1\t\\n%\t"\\$2" .. . if !\nF==2 \{\ . nr % 0 . nr F 2 . \} . \} .\} .rr rF .\" ======================================================================== .\" .IX Title "DH_AUTO_INSTALL 1" .TH DH_AUTO_INSTALL 1 2024-03-27 13.15.3 Debhelper .\" For nroff, turn off justification. Always turn off hyphenation; it makes .\" way too many mistakes in technical documents. .if n .ad l .nh .SH 名前 .IX Header "名前" dh_auto_install \- make install や類似コマンドを自動的に実行する .SH 書式 .IX Header "書式" \&\fBdh_auto_install\fR [\fIbuild\ system\ オプション\fR] [\fIdebhelper\ オプション\fR] [\fB\-\-\fR\ \fIparams\fR] .SH 説明 .IX Header "説明" \&\fBdh_auto_install\fR プログラムは、ビルドしたファイルを自動的にインストールしようとする debhelper プログラムです。パッケージが利用するビルドシステムを判定し、そのビルドシステムに対して適切なコマンドを実行することでインストールを行います。例えば、\fIMakefile\fR が存在し、中に \fBinstall\fR ターゲットが存在する場合 (あるいは、\fBMAKE\fR 環境変数が設定されている場合)、\fBmake\fR を実行します)。もし、\fIsetup.py\fR や \fIBuild.PL\fR が存在すれば、こちらが利用されます。なお、Ant ビルドシステムはインストールをサポートしていません。そのため、\fBdh_auto_install\fR は Ant を使ってビルドしたファイルをインストールしないことに注意してください。 .PP In compat 15 or later, \fBdh_auto_install\fR will use \fIdebian/tmp\fR as the default \fB\-\-destdir\fR and should be moved from there to the appropriate package build directory using \fBdh_install\fR\|(1) or similar tools. Though if the \fBsingle-binary\fR addon for \fBdh\fR\|(1) is activated, then it will pass an explicit \fB\-\-destdir=debian/\fR\f(BIpackage\fR\fB/\fR to \fBdh_auto_install\fR. .PP For earlier compat levels then unless \fB\-\-destdir\fR option is specified, the files are installed into debian/\fIpackage\fR/ if there is only one binary package. In the multiple binary package case, the files are instead installed into \fIdebian/tmp/\fR, and should be moved from there to the appropriate package build directory using \fBdh_install\fR\|(1) or similar tools. .PP \&\fBDESTDIR\fR は生成したファイルをどこに置くべきかを指定する時に利用します。もし Makefileが \fIMakefile.PL\fR を使って MakeMaker から生成される場合、生成された Makefile の為に、さらに自動的に \fBPREFIX=/usr\fR がインストールディレクトリとして指定されます。 .PP このコマンドはほぼ 90 \f(CW%のパッケージに対してうまく動作するように設計されています\fR。うまく動かない場合、あるいは、間違ったインストールターゲットを使ってしまうような場合には、\fBdh_auto_install\fR を完全に省略して make install を手動で実行することを推奨します。 .SH オプション .IX Header "オプション" "\fBビルドシステム用オプション\fR" in \fBdebhelper\fR\|(7) には、よく使われるビルドシステムと、制御オプションが列挙されています。 .IP \fB\-\-destdir=\fR\fIdirectory\fR 4 .IX Item "--destdir=directory" 指定した \fIdirectory\fR 以下にファイルをインストールします。このオプションを指定しない場合、インストール先は "\fB説明\fR" 章で説明するディレクトリになるように自動的に指定されます。 .IP "\fB\-\-\fR \fIparams\fR" 4 .IX Item "-- params" \&\fIparams\fR を実行するプログラムに渡すには、\fBdh_auto_install\fR に通常指定するパラメータの後に \fIparam\fR を指定してください。 .SH 参照 .IX Header "参照" \&\fBdebhelper\fR\|(7) .PP このプログラムは debhelper の一部です。 .SH 作者 .IX Header "作者" Joey Hess