Commit | Line | Data |
---|---|---|
6f7c8186 NC |
1 | #!perl -w |
2 | ||
3 | use strict; | |
4 | use ExtUtils::MakeMaker; | |
291c8c21 | 5 | use File::Spec::Functions; |
6f7c8186 NC |
6 | |
7 | WriteMakefile(NAME => 'Pod::Functions', | |
8 | VERSION_FROM => 'Functions_pm.PL', | |
9 | LICENSE => 'perl', | |
10 | PREREQ_PM => {}, | |
11 | ABSTRACT_FROM => 'Functions_pm.PL', | |
12 | AUTHOR => 'Perl 5 Porters <perlbug@perl.org>', | |
13 | INSTALLDIRS => 'perl', | |
291c8c21 | 14 | PL_FILES => {}, # Stop EU::MM defaulting this to run our PL |
6f7c8186 NC |
15 | PM => {'Functions.pm' => '$(INST_LIBDIR)/Functions.pm'}, |
16 | clean => {FILES => 'Functions.pm'}, | |
17 | ); | |
291c8c21 NC |
18 | |
19 | # There doesn't seem to be any way to get ExtUtils::MakeMaker to add a | |
20 | # dependency on another file (or target), and as it's using :: rules, not : | |
21 | # rules, then we can't simply add a one line dependency. So we need to provide | |
22 | # the entire thing. Fortunately, the same code in MM_Unix.pm is actually used | |
23 | # for all platforms, so this code below should also be portable: | |
24 | ||
25 | sub MY::postamble { | |
26 | my $pf = catfile(updir, updir, 'pod', 'perlfunc.pod'); | |
27 | return <<"EOT"; | |
28 | all :: Functions.pm | |
29 | \$(NOECHO) \$(NOOP) | |
30 | ||
31 | Functions.pm :: Functions_pm.PL $pf | |
32 | \$(PERLRUN) Functions_pm.PL $pf | |
33 | EOT | |
34 | } |