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