1
0
mirror of https://github.com/git/git.git synced 2024-11-20 11:34:04 +01:00

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>
This commit is contained in:
Eric Wong 2006-08-13 04:13:25 -07:00 committed by Junio C Hamano
parent 9673198ee8
commit 4c5cf8c44c

@ -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
);