This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Do not inject use Config into Dynaloader.pm when PERL_BUILD_EXPAND_CONFIG_VARS
[perl5.git] / ext / Pod-Functions / Makefile.PL
CommitLineData
6f7c8186
NC
1#!perl -w
2
3use strict;
4use ExtUtils::MakeMaker;
291c8c21 5use File::Spec::Functions;
6f7c8186
NC
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',
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
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}