Browse Source

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>
maint
Eric Wong 18 years ago committed by Junio C Hamano
parent
commit
4c5cf8c44c
  1. 4
      perl/Makefile.PL

4
perl/Makefile.PL

@ -22,10 +22,14 @@ if ($@) {
$pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm'; $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
} }


my %extra;
$extra{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR};

WriteMakefile( WriteMakefile(
NAME => 'Git', NAME => 'Git',
VERSION_FROM => 'Git.pm', VERSION_FROM => 'Git.pm',
PM => \%pm, PM => \%pm,
MYEXTLIB => '../libgit.a', MYEXTLIB => '../libgit.a',
INC => '-I. -I..', INC => '-I. -I..',
%extra
); );

Loading…
Cancel
Save