This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Purge references to --netscape and --libpods, no longer in Pod::Html
[perl5.git] / pod / Makefile.SH
CommitLineData
aa275be2 1case $PERL_CONFIG_SH in
4755096e
GS
2'')
3 if test -f config.sh; then TOP=.;
4 elif test -f ../config.sh; then TOP=..;
5 elif test -f ../../config.sh; then TOP=../..;
6 elif test -f ../../../config.sh; then TOP=../../..;
7 elif test -f ../../../../config.sh; then TOP=../../../..;
8 else
9 echo "Can't find config.sh."; exit 1
10 fi
11 . $TOP/config.sh
12 ;;
13esac
14: This forces SH files to create target in same directory as SH file.
15: This is so that make depend always knows where to find SH derivatives.
16case "$0" in
17*/*) cd `expr X$0 : 'X\(.*\)/'` ;;
18esac
19
20if test -d pod; then
21 cd pod || exit 1
22fi
23POD=`echo *.pod`
24MAN=`echo $POD|sed 's/\.pod/\.man/g'`
e788edff 25HTML=`echo $POD|sed 's/perltoc.pod//'|sed 's/\.pod/\.html/g'`
4755096e
GS
26TEX=`echo $POD|sed 's/\.pod/\.tex/g'`
27
28echo "Extracting pod/Makefile (with variable substitutions)"
29: This section of the file will have variable substitutions done on it.
30: Move anything that needs config subs from !NO!SUBS! section to !GROK!THIS!.
31: Protect any dollar signs and backticks that you do not want interpreted
32: by putting a backslash in front. You may delete these comments.
33
34$spitshell >Makefile <<!GROK!THIS!
35# pod/Makefile
36# This file is derived from pod/Makefile.SH. Any changes made here will
37# be lost the next time you run Configure.
38
39POD = $POD
40
41MAN = $MAN
42
43# no perltoc.html
44HTML = $HTML
45
46TEX = $TEX
47
c2e66d9e
GS
48# The following is used to include the current directory in
49# the dynamic loader path you are building a shared libperl.
50LDLIBPTH = $ldlibpth
51
4755096e
GS
52!GROK!THIS!
53
54## In the following dollars and backticks do not need the extra backslash.
55$spitshell >>Makefile <<'!NO!SUBS!'
56
4755096e 57HTMLROOT = / # Change this to fix cross-references in HTML
6c6fc3be 58POD2HTML_ARGS = --htmlroot=$(HTMLROOT) --podroot=.. --podpath=pod:lib:ext:vms
33c64ab2 59POD2HTML = ../ext/Pod-Html/pod2html
bab7aada 60POD2MAN = ../cpan/podlators/pod2man
bf07e08f 61POD2LATEX = ../cpan/Pod-LaTeX/pod2latex
cde5101a 62PODCHECKER = ../cpan/Pod-Parser/podchecker
4755096e
GS
63
64PERL = ../miniperl
2607bbb4 65PERLILIB = $(PERL) -I../lib
4755096e
GS
66REALPERL = ../perl
67
33c64ab2 68all: man
4755096e 69
bab7aada 70man: $(POD2MAN) $(MAN)
4755096e 71
33c64ab2 72html: $(POD2HTML) $(HTML)
4755096e 73
bf07e08f 74tex: $(POD2LATEX) $(TEX)
4755096e 75
1fa7ca25 76toc perltoc.pod: buildtoc
b78c1104 77 $(PERLILIB) buildtoc
4755096e
GS
78
79.SUFFIXES: .pm .pod
80
81.SUFFIXES: .man
82
bab7aada
NC
83.pm.man: $(POD2MAN)
84 $(REALPERL) -I../lib $(POD2MAN) $*.pm >$*.man
4755096e 85
bab7aada
NC
86.pod.man: $(POD2MAN)
87 $(REALPERL) -I../lib $(POD2MAN) $*.pod >$*.man
4755096e
GS
88
89.SUFFIXES: .html
90
33c64ab2
NC
91.pm.html: $(POD2HTML)
92 $(PERL) -I../lib $(POD2HTML) $(POD2HTML_ARGS) --infile=$*.pm --outfile=$*.html
4755096e 93
33c64ab2
NC
94.pod.html: $(POD2HTML)
95 $(PERL) -I../lib $(POD2HTML) $(POD2HTML_ARGS) --infile=$*.pod --outfile=$*.html
4755096e
GS
96
97.SUFFIXES: .tex
98
bf07e08f
NC
99.pm.tex: $(POD2LATEX)
100 $(PERL) -I../lib $(POD2LATEX) $*.pm
4755096e 101
bf07e08f
NC
102.pod.tex: $(POD2LATEX)
103 $(PERL) -I../lib $(POD2LATEX) $*.pod
4755096e
GS
104
105clean:
106 rm -f $(MAN)
107 rm -f $(HTML)
108 rm -f $(TEX)
109 rm -f pod2html-*cache
110 rm -f *.aux *.log *.exe
111
112realclean: clean
4755096e
GS
113
114distclean: realclean
115
2edbd6da
JH
116veryclean: distclean
117 -rm -f *~ *.orig
118
cde5101a 119check: $(PODCHECKER)
4755096e 120 @echo "checking..."; \
cde5101a 121 $(PERL) -I../lib $(PODCHECKER) $(POD)
4755096e 122!NO!SUBS!