[ Joey Hess ]
* dh_gencontrol: Drop the Homepage field from udebs. Closes: #492719
* Typo. Closes: #493062
+ * dh_auto_install: Improve check for MakeMaker, to avoid passing PREFIX
+ if the Makefile was generated by Module::Build::Compat. Closes: #496157
-- Per Olofsson <pelle@debian.org> Wed, 23 Jul 2008 10:52:14 +0200
if (-e "Makefile" || -e "makefile" || -e "GNUmakefile") {
$ENV{MAKE}="make" unless exists $ENV{MAKE};
my @params="DESTDIR=$destdir";
- # Special case for MakeMaker.
- if (-e "Makefile.PL") {
+
+ # Special case for MakeMaker generated Makefiles.
+ if (-e "Makefile" &&
+ system('grep -q "generated automatically by MakeMaker" Makefile') == 0) {
push @params, "PREFIX=/usr";
}
+
foreach my $target (qw{install}) {
# Use make -n to check to see if the target would do
# anything. There's no good way to test if a target exists.