aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
blob: 7204f9b3e845f1c890607a9648d61c77eb1bd36f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# $Id$
use ExtUtils::MakeMaker;

WriteMakefile(
    NAME       => 'youri-core',
    VERSION    => 0.9,
    AUTHOR     => 'Youri project <youri@zarb.org>',
    PREREQ_PM  => {
        'AppConfig'              => 0,
        'YAML'                   => 0,
        'Pod::Simple::HTMLBatch' => 0,
        'Test::Exception'        => 0,
        'Exception'              => 0,
        'RPM4'                   => 0,
        'URPM'                   => 0
    }
);

package MY;

sub top_targets {
    my ($self) = @_;
    my $top_targets = $self->SUPER::top_targets(@_);
    $top_targets =~ s/all :: pure_all manifypods/all :: pure_all manifypods htmlifypods/;
    $top_targets .= <<'EOF';
htmlifypods : $(TO_INST_PM)
	if [ ! -d blib/html ]; then mkdir blib/html; fi
	perl -MPod::Simple::HTMLBatch -e Pod::Simple::HTMLBatch::go lib blib/html
EOF
     return $top_targets;
}