]> git.ipfire.org Git - thirdparty/git.git/blame - perl/Makefile.PL
diff --quiet
[thirdparty/git.git] / perl / Makefile.PL
CommitLineData
b1edc53d
PB
1use ExtUtils::MakeMaker;
2
3sub MY::postamble {
4 return <<'MAKE_FRAG';
5instlibdir:
18b0fc1c 6 @echo '$(INSTALLSITELIB)'
e2a38710 7
b1edc53d
PB
8MAKE_FRAG
9}
10
5c4082fd
PB
11my %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.
1d8c9dc4 15eval { require Error };
5c4082fd 16if ($@) {
1d8c9dc4 17 $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
5c4082fd
PB
18}
19
4c5cf8c4
EW
20my %extra;
21$extra{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR};
22
8bef6204
JS
23# redirect stdout, otherwise the message "Writing perl.mak for Git"
24# disrupts the output for the target 'instlibdir'
25open STDOUT, ">&STDERR";
26
b1edc53d
PB
27WriteMakefile(
28 NAME => 'Git',
29 VERSION_FROM => 'Git.pm',
5c4082fd 30 PM => \%pm,
2cdf87eb 31 MAKEFILE => 'perl.mak',
4c5cf8c4 32 %extra
b1edc53d 33);