@matheusbsbs / matheus-bagliano / commits / 4c5cf8c44c
Fork 0

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 <normalperson@yhbt.net> Signed-off-by: Junio C Hamano <junkio@cox.net>

Eric Wong committed Aug 13, 2006 at 04:13 UTC 4c5cf8c44ce06a79da5bafd4a92e6d6f598cea2e
1 file changed +4
perl/Makefile.PL
+4
@@ -22,10 +22,14 @@ if ($@) {
22 $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
23 }
24
25 +my %extra;
26 +$extra{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR};
27 +
28 WriteMakefile(
29 NAME => 'Git',
30 VERSION_FROM => 'Git.pm',
31 PM => \%pm,
32 MYEXTLIB => '../libgit.a',
33 INC => '-I. -I..',
34 + %extra
35 );