5 dh_auto_install - automatically runs make install or similar
10 use Debian::Debhelper::Dh_Lib;
11 use Debian::Debhelper::Dh_Buildsystems;
16 B<dh_auto_install> [S<I<debhelper options>>] [S<B<--> I<params>>]
20 dh_auto_install is a debhelper program that tries to automatically install
21 built files. If there's a Makefile and it contains a "install" target,
22 then this is done by running make (or MAKE, if the environment variable is
23 set). If there is a setup.py or Build.PL, it is used.
25 The files are installed into debian/<package>/ if there is only one binary
26 package. In the multiple binary package case, the files are instead
27 installed into debian/tmp/, and should be moved from there to the
28 appropriate package build directory using L<dh_install(1)> or
31 DESTDIR is used to tell make where to install the files.
32 If the Makefile was generated by MakeMaker from a Makefile.PL, it will
33 automatically set PREFIX=/usr too, since such Makefiles need that.
35 This is intended to work for about 90% of packages. If it doesn't work, or
36 tries to use the wrong install target, you're encouraged to skip using
37 dh_auto_install at all, and just run make install manually.
45 Pass "params" to the program that is run. These can be used to supplement
46 or override the any standard parameters that dh_auto_install passes.
55 my @allpackages=getpackages();
56 if (@allpackages > 1) {
57 $destdir="debian/tmp";
60 $destdir=tmpdir($dh{MAINPACKAGE});
62 $destdir=cwd()."/".$destdir;
64 buildsystems_do("install", $destdir);
70 This program is a part of debhelper.
74 Joey Hess <joeyh@debian.org>