gitweb: Do not show difftree for merges in "commit" view
[git/dscho.git] / perl / Makefile.PL
blob41687757a7fdd9c09bd320b92ed7f089af00a403
1 use ExtUtils::MakeMaker;
3 sub MY::postamble {
4         return <<'MAKE_FRAG';
5 instlibdir:
6         @echo '$(INSTALLSITELIB)'
8 MAKE_FRAG
11 my %pm = ('Git.pm' => '$(INST_LIBDIR)/Git.pm');
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 ($@) {
17         $pm{'private-Error.pm'} = '$(INST_LIBDIR)/Error.pm';
20 my %extra;
21 $extra{DESTDIR} = $ENV{DESTDIR} if $ENV{DESTDIR};
23 WriteMakefile(
24         NAME            => 'Git',
25         VERSION_FROM    => 'Git.pm',
26         PM              => \%pm,
27         MAKEFILE        => 'perl.mak',
28         %extra