1use ExtUtils::MakeMaker;23sub MY::postamble {4return <<'MAKE_FRAG';5instlibdir:6@echo '$(INSTALLSITELIB)'78ifneq (,$(DESTDIR))9ifeq (0,$(shell expr '$(MM_VERSION)' '>' 6.10))10$(error ExtUtils::MakeMaker version "$(MM_VERSION)" is older than 6.11 and so \11is likely incompatible with the DESTDIR mechanism. Try setting \12NO_PERL_MAKEMAKER=1 instead)13endif14endif1516MAKE_FRAG17}1819my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');2021# We come with our own bundled Error.pm. It's not in the set of default22# Perl modules so install it if it's not available on the system yet.23eval { require Error };24if ($@ || $Error::VERSION < 0.15009) {25$pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';26}2728# redirect stdout, otherwise the message "Writing perl.mak for Git"29# disrupts the output for the target 'instlibdir'30open STDOUT, ">&STDERR";3132WriteMakefile(33NAME => 'Git',34VERSION_FROM => 'Git.pm',35PM => \%pm,36MAKEFILE => 'perl.mak',37INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'38);