summaryrefslogtreecommitdiff
path: root/Makefile.SH
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2009-04-21 10:49:10 +0100
committerNicholas Clark <nick@ccl4.org>2009-04-21 10:49:10 +0100
commit7eb47696deb9a7343fb4847f7342919a6df59e21 (patch)
tree925ae1eda77fb4c05082b68330966c0e71ac5c12 /Makefile.SH
parentda09dfe31dd61a9d5a3c2d9d69e3d674b6c642ac (diff)
downloadperl-7eb47696deb9a7343fb4847f7342919a6df59e21.tar.gz
Build perltoc.pod, rather than shipping it. This way it can't get out of date.
Diffstat (limited to 'Makefile.SH')
-rw-r--r--Makefile.SH9
1 files changed, 8 insertions, 1 deletions
diff --git a/Makefile.SH b/Makefile.SH
index 7cb0004b2a..f7ec2529fb 100644
--- a/Makefile.SH
+++ b/Makefile.SH
@@ -454,7 +454,8 @@ mini_obj = $(obj1) $(obj2) $(obj3) $(ARCHOBJS)
ndt_obj = $(obj0) $(obj1) $(obj2) $(obj3) $(ARCHOBJS)
obj = $(ndt_obj) $(DTRACE_O)
-generated_pods = extra.pods pod/perlapi.pod pod/perldelta.pod pod/perlintern.pod
+perltoc_pod_prereqs = extra.pods pod/perlapi.pod pod/perldelta.pod pod/perlintern.pod
+generated_pods = pod/perltoc.pod $(perltoc_pod_prereqs)
lintflags = \
-b \
@@ -971,6 +972,12 @@ uni.data: miniperl$(EXE_EXT) $(CONFIGPM) lib/unicore/mktables
cd lib/unicore && $(LDLIBPTH) $(RUN) ../../miniperl$(EXE_EXT) -I../../lib mktables -w
touch uni.data
+# perl$(EXE_EXT) and ext because buildtoc uses Text::Wrap uses re
+# But also this ensures that all extensions are built before we try to scan
+# them, which picks up Devel::PPPort's documentation.
+pod/perltoc.pod: $(perltoc_pod_prereqs) perl$(EXE_EXT) ext pod/buildtoc
+ $(RUN) ./perl$(EXE_EXT) -Ilib pod/buildtoc --build-toc -q
+
pod/perlapi.pod pod/perlintern.pod: miniperl$(EXE_EXT) autodoc.pl embed.fnc
$(RUN) ./miniperl$(EXE_EXT) -Ilib autodoc.pl