git/list[1] front-page[2] threads[3] people[4] search[5] about
 

[PATCH] pass DESTDIR to the generated perl/Makefile

From
EWEric Wong <normalperson@yhbt.net>
Date
Aug 13, 2006, 11:13 UTC
Message-ID
<11554676054185-git-send-email-normalperson@yhbt.net>

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
Message 1 of 1 in “pass DESTDIR to the generated perl/Makefile”
  1. pass DESTDIR to the generated perl/MakefileEric Wong, Aug 13, 2006

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.