Provided by: debhelper_13.24.2ubuntu1_all bug

名前

       dh_auto_install - make install や類似コマンドを自動的に実行する

書式

       dh_auto_install [build system オプション] [debhelper オプション] [-- params]

説明

       dh_auto_install プログラムは、ビルドしたファイルを自動的にインストールしようとする debhelper プログラムで
       す。パッケージが利用するビルドシステムを判定し、そのビルドシステムに対して適切なコマンドを実行することで
       インストールを行います。例えば、Makefile が存在し、中に install ターゲットが存在する場合 (あるいは、MAKE
       環境変数が設定されている場合)、make を実行します)。もし、setup.pyBuild.PL が存在すれば、こちらが利用
       されます。なお、Ant ビルドシステムはインストールをサポートしていません。そのため、dh_auto_install は Ant
       を使ってビルドしたファイルをインストールしないことに注意してください。

       In compat 14 or later, dh_auto_install will use debian/tmp as the default --destdir and should be moved
       from there to the appropriate package build directory using dh_install(1) or similar tools. Though if the
       single-binary addon for dh(1) is activated, then it will pass an explicit --destdir=debian/package/ to
       dh_auto_install.

       For earlier compat levels then unless --destdir option is specified, the files are installed into
       debian/package/ if there is only one binary package. In the multiple binary package case, the files are
       instead installed into debian/tmp/, and should be moved from there to the appropriate package build
       directory using dh_install(1) or similar tools.

       DESTDIR は生成したファイルをどこに置くべきかを指定する時に利用します。もし Makefileが Makefile.PL を使っ
       て MakeMaker から生成される場合、生成された Makefile の為に、さらに自動的に PREFIX=/usr がインストール
       ディレクトリとして指定されます。

       このコマンドはほぼ 90 %のパッケージに対してうまく動作するように設計されています。うまく動かない場合、ある
       いは、間違ったインストールターゲットを使ってしまうような場合には、dh_auto_install を完全に省略して make
       install を手動で実行することを推奨します。

オプション

       "ビルドシステム用オプション" in debhelper(7) には、よく使われるビルドシステムと、制御オプションが列挙され
       ています。

       --destdir=directory
           指定した directory 以下にファイルをインストールします。このオプションを指定しない場合、インストール先
           は "説明" 章で説明するディレクトリになるように自動的に指定されます。

       -- params
           params  を実行するプログラムに渡すには、dh_auto_install に通常指定するパラメータの後に param を指定し
           てください。

参照

       debhelper(7)

       このプログラムは debhelper の一部です。

作者

       Joey Hess <joeyh@debian.org>

13.24.2ubuntu1                                     2025-05-22                                 DH_AUTO_INSTALL(1)