]> git.ipfire.org Git - thirdparty/git.git/blame - perl/Makefile.PL
Make perl/ build procedure ActiveState friendly.
[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
b1edc53d
PB
23WriteMakefile(
24 NAME => 'Git',
25 VERSION_FROM => 'Git.pm',
5c4082fd 26 PM => \%pm,
4c5cf8c4 27 %extra
b1edc53d 28);