1#!perl -w
2
3use strict;
4use ExtUtils::MakeMaker;
5use File::Spec::Functions;
6
7WriteMakefile(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',
14	      PL_FILES => {}, # Stop EU::MM defaulting this to run our PL
15	      PM => {'Functions.pm' => '$(INST_LIBDIR)/Functions.pm'},
16	      clean => {FILES => 'Functions.pm'},
17	     );
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
25sub MY::postamble {
26    my $pf = catfile(updir, updir, 'pod', 'perlfunc.pod');
27    return <<"EOT";
28all :: Functions.pm
29	\$(NOECHO) \$(NOOP)
30
31Functions.pm :: Functions_pm.PL $pf
32	\$(PERLRUN) Functions_pm.PL $pf
33EOT
34}
35