5 dh_auto_build - automatically builds a package
10 use Debian::Debhelper::Dh_Lib;
14 B<dh_auto_build> [S<I<debhelper options>>] [S<B<--> I<params>>]
18 dh_auto_build is a debhelper program that tries to automatically
19 build a package. If a Makefile is found, this is done by running make (or
20 MAKE, if the environment variable is set).
21 If there's a setup.py, or Build.PL, it is run to build the package.
23 This is intended to work for about 90% of packages. If it doesn't work,
24 you're encouraged to skip using dh_auto_build at all, and just run the
25 build process manually.
33 Pass "params" to the program that is run. These can be used to supplement
34 or override any standard parameters that dh_auto_build passes.
42 if (-e "Makefile" || -e "makefile" || -e "GNUmakefile") {
43 doit(exists $ENV{MAKE} ? $ENV{MAKE} : "make", @{$dh{U_PARAMS}});
45 elsif (-e "setup.py") {
46 doit("python", "setup.py", "build", @{$dh{U_PARAMS}});
48 elsif (-e "Build.PL" && -e "Build") {
49 doit("perl", "Build", @{$dh{U_PARAMS}});
56 This program is a part of debhelper.
60 Joey Hess <joeyh@debian.org>