3 use ExtUtils::MakeMaker;
6 # Sanity: die at first unknown option
7 Getopt::Long::Configure qw/ pass_through /;
9 GetOptions("localedir=s" => \my $localedir);
14 @echo '$(INSTALLSITELIB)'
17 ifeq (0,$(shell expr '$(MM_VERSION)' '>' 6.10))
18 $(error ExtUtils::MakeMaker version "$(MM_VERSION)" is older than 6.11 and so \
19 is likely incompatible with the DESTDIR mechanism. Try setting \
20 NO_PERL_MAKEMAKER=1 instead)
28 'Git.pm' => '$(INST_LIBDIR)/Git.pm',
29 'Git/I18N.pm' => '$(INST_LIBDIR)/Git/I18N.pm',
30 'Git/SVN/Fetcher.pm' => '$(INST_LIBDIR)/Git/SVN/Fetcher.pm',
31 'Git/SVN/Editor.pm' => '$(INST_LIBDIR)/Git/SVN/Editor.pm',
32 'Git/SVN/Prompt.pm' => '$(INST_LIBDIR)/Git/SVN/Prompt.pm',
35 # We come with our own bundled Error.pm. It's not in the set of default
36 # Perl modules so install it if it's not available on the system yet.
37 eval { require Error };
38 if ($@ || $Error::VERSION < 0.15009) {
39 $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
42 # redirect stdout, otherwise the message "Writing perl.mak for Git"
43 # disrupts the output for the target 'instlibdir'
44 open STDOUT, ">&STDERR";
48 VERSION_FROM => 'Git.pm',
50 PM_FILTER => qq[\$(PERL) -pe "s<\\Q++LOCALEDIR++\\E><$localedir>"],
51 MAKEFILE => 'perl.mak',
52 INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'