From: Eric Wong Date: Sun, 13 Aug 2006 11:13:25 +0000 (-0700) Subject: pass DESTDIR to the generated perl/Makefile X-Git-Tag: v1.4.3-rc1~2^2~7 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=4c5cf8c44ce06a79da5bafd4a92e6d6f598cea2e;p=git.git pass DESTDIR to the generated perl/Makefile Makes life for binary packagers easier, as the Perl modules will be installed inside DESTDIR. Signed-off-by: Eric Wong Signed-off-by: Junio C Hamano --- diff --git a/perl/Makefile.PL b/perl/Makefile.PL index 97ee9af9c..ef9d82d7b 100644 --- a/perl/Makefile.PL +++ b/perl/Makefile.PL @@ -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 );