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@xxxxxxxxxxxxxxx> --- perl/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/perl/Makefile b/perl/Makefile index 15d96fcc7..ce53a240c 100644 --- a/perl/Makefile +++ b/perl/Makefile @@ -25,7 +25,12 @@ clean: $(makfile): PM.stamp 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)) modules += Git modules += Git/I18N -- 2.12.2