blob: 24d60571d1ead1042122bde3a0ccae83331c923d [file] [log] [blame]
Jean-Paul Calderone897bc252008-02-18 20:50:23 -05001# Generate the Python "info" documentation.
2
3TOPDIR=..
4TOOLSDIR=$(TOPDIR)/tools
5HTMLDIR=$(TOPDIR)/html
6
7MKINFO=$(TOOLSDIR)/mkinfo
8SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo \
9 $(TOOLSDIR)/fixinfo.el
10
11all: python-api.info python-ext.info python-lib.info \
12 python-ref.info python-tut.info \
13 python-dist.info python-inst.info
14
15
16python-api.info: $(HTMLDIR)/api/api.html $(SCRIPTS)
17 $(MKINFO) $<
18
19python-ext.info: $(HTMLDIR)/ext/ext.html $(SCRIPTS)
20 $(MKINFO) $<
21
22python-lib.info: $(HTMLDIR)/lib/lib.html $(SCRIPTS)
23 $(MKINFO) $<
24
25# Not built by default; the conversion doesn't really handle it well.
26python-mac.info: $(HTMLDIR)/mac/mac.html $(SCRIPTS)
27 $(MKINFO) $<
28
29python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS)
30 $(MKINFO) $<
31
32python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS)
33 $(MKINFO) $<
34
35python-dist.info: $(HTMLDIR)/dist/dist.html $(SCRIPTS)
36 $(MKINFO) $<
37
38python-inst.info: $(HTMLDIR)/inst/inst.html $(SCRIPTS)
39 $(MKINFO) $<
40
41clean:
42 rm -f *.texi~ *.texi
43
44clobber: clean
45 rm -f *.texi python-*.info python-*.info-[0-9]*
46
47
48# This makes sure we can build info files from a "clean" tree,
49# in case we haven't already built the HTML:
50
51$(HTMLDIR)/api/api.html:
52 (cd $(HTMLDIR); $(MAKE) api)
53
54$(HTMLDIR)/ext/ext.html:
55 (cd $(HTMLDIR); $(MAKE) ext)
56
57$(HTMLDIR)/lib/lib.html:
58 (cd $(HTMLDIR); $(MAKE) lib)
59
60$(HTMLDIR)/mac/mac.html:
61 (cd $(HTMLDIR); $(MAKE) mac)
62
63$(HTMLDIR)/ref/ref.html:
64 (cd $(HTMLDIR); $(MAKE) ref)
65
66$(HTMLDIR)/tut/tut.html:
67 (cd $(HTMLDIR); $(MAKE) tut)
68
69$(HTMLDIR)/dist/dist.html:
70 (cd $(HTMLDIR); $(MAKE) dist)
71
72$(HTMLDIR)/inst/inst.html:
73 (cd $(HTMLDIR); $(MAKE) inst)