dynamic_list=' '
dynamic_ext_re="lib/auto/re/re.$dlext"
extra_dep='
-ext/Pod-Functions/pm_to_blib: cpan/Pod-Simple/pm_to_blib
+ext/Pod-Functions/pm_to_blib: cpan/Pod-Simple/pm_to_blib pod/perlfunc.pod
'
for f in $dynamic_ext; do
: the dependency named here will never exist
use strict;
use ExtUtils::MakeMaker;
+use File::Spec::Functions;
WriteMakefile(NAME => 'Pod::Functions',
VERSION_FROM => 'Functions_pm.PL',
ABSTRACT_FROM => 'Functions_pm.PL',
AUTHOR => 'Perl 5 Porters <perlbug@perl.org>',
INSTALLDIRS => 'perl',
- PL_FILES => {'Functions_pm.PL' => 'Functions.pm'},
+ PL_FILES => {}, # Stop EU::MM defaulting this to run our PL
PM => {'Functions.pm' => '$(INST_LIBDIR)/Functions.pm'},
clean => {FILES => 'Functions.pm'},
);
+
+# There doesn't seem to be any way to get ExtUtils::MakeMaker to add a
+# dependency on another file (or target), and as it's using :: rules, not :
+# rules, then we can't simply add a one line dependency. So we need to provide
+# the entire thing. Fortunately, the same code in MM_Unix.pm is actually used
+# for all platforms, so this code below should also be portable:
+
+sub MY::postamble {
+ my $pf = catfile(updir, updir, 'pod', 'perlfunc.pod');
+ return <<"EOT";
+all :: Functions.pm
+ \$(NOECHO) \$(NOOP)
+
+Functions.pm :: Functions_pm.PL $pf
+ \$(PERLRUN) Functions_pm.PL $pf
+EOT
+}
dynext : $(LIBPREREQ) $(DBG)perlshr$(E) unidatafiles.ts DynaLoader$(O) preplibrary makeppport $(MINIPERL_EXE)
$(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--dynamic" "--static"
-nonxsext : $(LIBPREREQ) preplibrary $(MINIPERL_EXE)
+nonxsext : $(LIBPREREQ) preplibrary $(MINIPERL_EXE) [.pod]perlfunc.pod
$(MINIPERL) make_ext.pl "MAKE=$(MMS)" "--nonxs"
[.lib.VMS]Filespec.pm : [.vms.ext]Filespec.pm
$(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
$(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
-Extensions_nonxs: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM)
+Extensions_nonxs: ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod
$(XCOPY) ..\*.h $(COREDIR)\*.*
$(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs
$(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --static
$(MINIPERL) -I..\lib list_static_libs.pl > Extensions_static
-Extensions_nonxs : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM)
+Extensions_nonxs : ..\make_ext.pl ..\lib\buildcustomize.pl $(PERLDEP) $(CONFIGPM) ..\pod\perlfunc.pod
$(XCOPY) ..\*.h $(COREDIR)\*.*
$(MINIPERL) -I..\lib ..\make_ext.pl "MAKE=$(MAKE)" --dir=$(CPANDIR) --dir=$(DISTDIR) --dir=$(EXTDIR) --nonxs