blob: 0fafaf4caa31262c98841d099b7150a448cfd6e8 (
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
|
# Convenience Makefile for building HTML documentation. You probably need to
# set TEXINPUTS from the command line for this to be useful, unless you
# actually build the .dvi files in the top level directory.
#
# Note that the .dvi files must already be built and TEXINPUTS must include the
# directory where latex's working files (esp. *.aux) are kept.
PAPER=letter
TOPDIR=..
TOOLSDIR=$(TOPDIR)/tools
PAPERDIR=$(TOPDIR)/paper-$(PAPER)
TEXINPUTS=$(TOPDIR)/paper-$(PAPER):$(TOPDIR)/texinputs:
# Where are the various programs?
PYTHON= python
WEBCHECKER= $(PYTHON) $(TOPDIR)/../Tools/webchecker/webchecker.py
MKHTML= PAPER=$(PAPER) $(TOOLSDIR)/mkhtml.sh
KPSEWHICH= TEXINPUTS=$(TEXINPUTS) kpsewhich tex
BUILDINDEX= $(TOOLSDIR)/buildindex.py
# make it clear to l2h, since our support only generates HTML 4.0
L2HARGS= -html_version 4.0
INDEXFILES=api/api.html \
ext/ext.html \
lib/lib.html \
mac/mac.html \
ref/ref.html \
tut/tut.html
COMMONPERL= $(TOPDIR)/perl/manual.perl \
$(TOPDIR)/perl/python.perl \
$(TOPDIR)/perl/l2hinit.perl
all: icons $(INDEXFILES)
.PHONY: api ext lib mac ref tut
api: icons api/api.html
ext: icons ext/ext.html
lib: icons lib/lib.html
mac: icons mac/mac.html
ref: icons ref/ref.html
tut: icons tut/tut.html
$(INDEXFILES): $(COMMONPERL) $(TOPDIR)/html/about.dat
api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
$(MKHTML) api $(L2HARGS)
ext/ext.html: $(PAPERDIR)/ext.aux
$(MKHTML) ext $(L2HARGS)
lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX)
$(TOOLSDIR)/fix_libaux.sed <`$(KPSEWHICH) lib.aux` >lib1.aux
mv lib1.aux `$(KPSEWHICH) lib.aux`
$(MKHTML) lib $(L2HARGS)
mac/mac.html: $(MACFILES) $(BUILDINDEX)
$(TOOLSDIR)/mkhowto.sh --address '<hr>Send comments to <a href="mailto:python-docs@python.org">python-docs@python.org</a>.' --html $(TOPDIR)/mac/mac.tex
ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX)
$(MKHTML) ref $(L2HARGS)
tut/tut.html: $(PAPERDIR)/tut.aux
$(MKHTML) tut $(L2HARGS)
include ../Makefile.deps
$(PAPERDIR)/api.aux: $(APIFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
$(PAPERDIR)/ext.aux: $(EXTFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
$(PAPERDIR)/lib.aux: $(LIBFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
$(PAPERDIR)/ref.aux: $(REFFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
$(PAPERDIR)/tut.aux: $(TUTFILES)
(cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)
# copy the icons/ directory over...
icons:
mkdir icons/
cp $(TOPDIR)/icons/*.gif icons/
webcheck:
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/api/
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ext/
$(WEBCHECKER) -m290000 file:`pwd`/$(HTMLDIR)/lib/
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/mac/
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/ref/
$(WEBCHECKER) file:`pwd`/$(HTMLDIR)/tut/
clean:
rm -rf icons/ @webchecker.pickle
clobber: clean
rm -rf api/ ext/ lib/ mac/ ref/ tut/
|