git.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] pass DESTDIR to the generated perl/Makefile
@ 2006-08-13 11:13 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2006-08-13 11:13 UTC (permalink / raw)
  To: git, Junio C Hamano; +Cc: Eric Wong

Makes life for binary packagers easier, as the Perl modules will
be installed inside DESTDIR.

Signed-off-by: Eric Wong <normalperson@yhbt.net>
---
 perl/Makefile.PL |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)

diff --git a/perl/Makefile.PL b/perl/Makefile.PL
index 97ee9af..8df46a4 100644
--- a/perl/Makefile.PL
+++ b/perl/Makefile.PL
@@ -22,10 +22,14 @@ if ($@) {
 	$pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
 }
 
+my %o;
+$o{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR};
+
 WriteMakefile(
 	NAME            => 'Git',
 	VERSION_FROM    => 'Git.pm',
 	PM		=> \%pm,
 	MYEXTLIB        => '../libgit.a',
 	INC             => '-I. -I..',
+	%o
 );
-- 
1.4.2.GIT

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2006-08-13 11:13 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-08-13 11:13 [PATCH] pass DESTDIR to the generated perl/Makefile Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).