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

[PATCH] NO_PERL_MAKEMAKER should behave more like ExtUtils::MakeMaker

From
Tom G. Christensen <tgc@statsbiblioteket.dk>
Date
Oct 13, 2009, 11:14 UTC
Message-ID
<1255432471-14168-1-git-send-email-tgc@statsbiblioteket.dk>

This change makes NO_PERL_MAKEMAKER behave more as ExtUtils::MakeMaker by installing the modules into the perl libdir and not $(prefix)/lib. It will default to sitelib but will allow the user to choose by setting the INSTALLDIRS variable which is also honored by ExtUtils::MakeMaker.

Signed-off-by: Tom G. Christensen <tgc@statsbiblioteket.dk>
---
 perl/Makefile |    7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/perl/Makefile b/perl/Makefile
index 4ab21d6..264cfc1 100644
--- a/perl/Makefile
+++ b/perl/Makefile
@@ -20,7 +20,12 @@ clean:
 	$(RM) $(makfile).old
 
 ifdef NO_PERL_MAKEMAKER
-instdir_SQ = $(subst ','\'',$(prefix)/lib)
+perllib = site
+ifdef INSTALLDIRS
+perllib = $(INSTALLDIRS)
+endif
+perlinstdir := $(shell sh -c "$(PERL_PATH_SQ) -V:install$(perllib)lib | cut -d\' -f2")
+instdir_SQ = $(subst ','\'',$(perlinstdir))
 $(makfile): ../GIT-CFLAGS Makefile
 	echo all: private-Error.pm Git.pm > $@
 	echo '	mkdir -p blib/lib' >> $@
-- 
1.6.4.4
Message 1 of 1 in “NO_PERL_MAKEMAKER should behave more like ExtUtils::MakeMaker”
  1. NO_PERL_MAKEMAKER should behave more like ExtUtils::MakeMakerTom G. Christensen, Oct 13, 2009

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.