Andrew's git
/
gitweb.git
/ diff
summary
|
log
|
commit
| diff |
tree
commit
grep
author
committer
pickaxe
?
re
pass DESTDIR to the generated perl/Makefile
author
Eric Wong
<normalperson@yhbt.net>
Sun, 13 Aug 2006 11:13:25 +0000
(
04:13
-0700)
committer
Junio 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
patch
|
blob
|
history
raw
|
patch
| inline |
side by side
(parent:
9673198
)
diff --git
a/perl/Makefile.PL
b/perl/Makefile.PL
index 97ee9af9c9834d759c33b17bca7b66eaef200e4f..ef9d82d7b63f0c2bee5777025450af4c5eb3abb2 100644
(file)
--- 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
);