1use ExtUtils::MakeMaker;
2
3sub MY::postamble {
4 return <<'MAKE_FRAG';
5instlibdir:
6 @echo '$(INSTALLSITEARCH)'
7
8check:
9 perl -MDevel::PPPort -le 'Devel::PPPort::WriteFile(".ppport.h")' && \
10 perl .ppport.h --compat-version=5.6.0 Git.xs && \
11 rm .ppport.h
12
13MAKE_FRAG
14}
15
16my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');
17
18# We come with our own bundled Error.pm. It's not in the set of default
19# Perl modules so install it if it's not available on the system yet.
20eval { require Error };
21if ($@) {
22 $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
23}
24
25WriteMakefile(
26 NAME => 'Git',
27 VERSION_FROM => 'Git.pm',
28 PM => \%pm,
29 MYEXTLIB => '../libgit.a',
30 INC => '-I. -I..',
31);