aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile.PL
blob: 38343c80848b9eee914e49c573715d313554c8fb (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: Makefile.PL 1724 2006-10-17 13:55:27Z warly $
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;
}