]> git.ipfire.org Git - thirdparty/git.git/blob - perl/Makefile.PL
Documentation: option to render literal text as bold for manpages
[thirdparty/git.git] / perl / Makefile.PL
1 use ExtUtils::MakeMaker;
2
3 sub MY::postamble {
4 return <<'MAKE_FRAG';
5 instlibdir:
6 @echo '$(INSTALLSITELIB)'
7
8 MAKE_FRAG
9 }
10
11 my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');
12
13 # We come with our own bundled Error.pm. It's not in the set of default
14 # Perl modules so install it if it's not available on the system yet.
15 eval { require Error };
16 if ($@ || $Error::VERSION < 0.15009) {
17 $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
18 }
19
20 # redirect stdout, otherwise the message "Writing perl.mak for Git"
21 # disrupts the output for the target 'instlibdir'
22 open STDOUT, ">&STDERR";
23
24 WriteMakefile(
25 NAME => 'Git',
26 VERSION_FROM => 'Git.pm',
27 PM => \%pm,
28 MAKEFILE => 'perl.mak',
29 INSTALLSITEMAN3DIR => '$(SITEPREFIX)/share/man/man3'
30 );