1 use ExtUtils::MakeMaker;
6 @echo '$(INSTALLSITELIB)'
11 # Note that when changing %pm, you'll have to remove pm_to_blib rather
12 # than the blib directory to .force the .pm files to be re-installed
14 my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm',
15 'Git/Repo.pm' => '$(INST_LIBDIR)/Git/Repo.pm',
16 'Git/RepoRoot.pm' => '$(INST_LIBDIR)/Git/RepoRoot.pm',
17 'Git/Commit.pm' => '$(INST_LIBDIR)/Git/Commit.pm',
18 'Git/Tag.pm' => '$(INST_LIBDIR)/Git/Tag.pm',
19 'Git/Object.pm' => '$(INST_LIBDIR)/Git/Object.pm');
21 # We come with our own bundled Error.pm. It's not in the set of default
22 # Perl modules so install it if it's not available on the system yet.
23 eval { require Error };
24 if ($@ || $Error::VERSION < 0.15009) {
25 $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
28 # redirect stdout, otherwise the message "Writing perl.mak for Git"
29 # disrupts the output for the target 'instlibdir'
30 open STDOUT, ">&STDERR";
34 VERSION_FROM => 'Git.pm',
36 MAKEFILE => 'perl.mak',
37 INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'