Re: better way to find Git.pm officially?
- From
Junio C Hamano <gitster@pobox.com>
- Date
- Mar 29, 2012, 06:45 UTC
- Message-ID
- <7vwr63rjku.fsf@alter.siamese.dyndns.org>
- In-Reply-To
- <20120329061336.GE27604@sigill.intra.peff.net>
Jeff King <peff@peff.net> writes:
> I always assumed that it was the responsibility of the user or the > packager to put Git.pm into a sane place that is found by perl's normal > lookup (possibly via the user's PERL5LIB if it is a per-user > installation).
Unfortunately, not really.
See what this target does in our Makefile:
$(patsubst %.perl,%,$(SCRIPT_PERL)): % : %.perl
Our scripts know where INSTLIBDIR is, so that we can redirect INSTLIBDIR to whatever directory that the packager or the user wants to, which may be outside the usual PERL5LIB.
Especially with NO_PERL_MAKEMAKER installation, perl/Makefile points at $(prefix)/lib with INSTLIBDIR, and $(prefix) is by default $(HOME), so...