]> git.ipfire.org Git - thirdparty/git.git/commitdiff
pass DESTDIR to the generated perl/Makefile
authorEric Wong <normalperson@yhbt.net>
Sun, 13 Aug 2006 11:13:25 +0000 (04:13 -0700)
committerJunio C Hamano <junkio@cox.net>
Sun, 13 Aug 2006 17:25:00 +0000 (10:25 -0700)
Makes life for binary packagers easier, as the Perl modules will
be installed inside DESTDIR.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
Signed-off-by: Junio C Hamano <junkio@cox.net>
perl/Makefile.PL

index 97ee9af9c9834d759c33b17bca7b66eaef200e4f..ef9d82d7b63f0c2bee5777025450af4c5eb3abb2 100644 (file)
@@ -22,10 +22,14 @@ if ($@) {
        $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
 }
 
+my %extra;
+$extra{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR};
+
 WriteMakefile(
        NAME            => 'Git',
        VERSION_FROM    => 'Git.pm',
        PM              => \%pm,
        MYEXTLIB        => '../libgit.a',
        INC             => '-I. -I..',
+       %extra
 );