]> git.donarmstrong.com Git - debhelper.git/blobdiff - dh_auto_install
minimal build system option documentation
[debhelper.git] / dh_auto_install
index c115a184aa791d278fcb1e2500bbd354b9518eac..446470270a19bdd55415e3e9219aa597e678a175 100755 (executable)
@@ -13,14 +13,16 @@ use Cwd;
 
 =head1 SYNOPSIS
 
-B<dh_auto_install> [S<I<debhelper options>>] [S<B<--> I<params>>]
+B<dh_auto_install> [S<I<build system options>>] [S<I<debhelper options>>] [S<B<--> I<params>>]
 
 =head1 DESCRIPTION
 
 dh_auto_install is a debhelper program that tries to automatically install
-built files. If there's a Makefile and it contains a "install" target,
-then this is done by running make (or MAKE, if the environment variable is
-set). If there is a setup.py or Build.PL, it is used.
+built files. It does so by running the appropriate command for the build
+system it detects the package uses. For example, if there's a Makefile and
+it contains a "install" target, then this is done by running make (or MAKE,
+if the environment variable is set). If there is a setup.py or Build.PL,
+it is used.
 
 The files are installed into debian/<package>/ if there is only one binary
 package. In the multiple binary package case, the files are instead
@@ -40,6 +42,9 @@ dh_auto_install at all, and just run make install manually.
 
 =over 4
 
+See L<debhelper(7)/BUILD SYSTEM OPTIONS> for a list of common build
+system selection and control options.
+
 =item B<--> I<params>
 
 Pass "params" to the program that is run. These can be used to supplement
@@ -49,8 +54,7 @@ or override the any standard parameters that dh_auto_install passes.
 
 =cut
 
-my $manager = new Debian::Debhelper::Dh_Buildsystems;
-$manager->init_dh_auto_tool();
+buildsystems_init();
 
 my $destdir;
 my @allpackages=getpackages();
@@ -62,7 +66,7 @@ else {
 }
 $destdir=cwd()."/".$destdir;
 
-$manager->run_dh_auto_tool($destdir);
+buildsystems_do("install", $destdir);
 
 =head1 SEE ALSO