blob: 8a0dfff74b26ffe84dd54328a661214afef80688 [file] [log] [blame]
Fred Drake47fd8fe1998-05-08 15:36:36 +00001# Generate the Python "info" documentation.
2
Fred Drake78104a91999-01-08 15:33:38 +00003PAPER=letter
4TOPDIR=..
5TOOLSDIR=$(TOPDIR)/tools
6PAPERDIR=$(TOPDIR)/paper-$(PAPER)
7HTMLDIR=$(TOPDIR)/html
8
9MKINFO=$(TOOLSDIR)/mkinfo
10SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo
11
12all: python-api.info python-ext.info python-lib.info \
13 python-mac.info python-ref.info python-tut.info
Fred Drake47fd8fe1998-05-08 15:36:36 +000014
15
Fred Drake78104a91999-01-08 15:33:38 +000016python-api.info: $(HTMLDIR)/api/api.html $(SCRIPTS)
17 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000018
Fred Drake78104a91999-01-08 15:33:38 +000019python-ext.info: $(HTMLDIR)/ext/ext.html $(SCRIPTS)
20 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000021
Fred Drake78104a91999-01-08 15:33:38 +000022python-lib.info: $(HTMLDIR)/lib/lib.html $(SCRIPTS)
23 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000024
Fred Drake78104a91999-01-08 15:33:38 +000025python-mac.info: $(HTMLDIR)/mac/mac.html $(SCRIPTS)
26 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000027
Fred Drake78104a91999-01-08 15:33:38 +000028python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS)
29 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000030
Fred Drake78104a91999-01-08 15:33:38 +000031python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS)
32 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000033
Fred Drake8981fdf1998-05-11 19:54:57 +000034
35clean:
Fred Drake78104a91999-01-08 15:33:38 +000036 rm -f *.texi~ *.texi
Fred Drake8981fdf1998-05-11 19:54:57 +000037
38clobber: clean
Fred Drake78104a91999-01-08 15:33:38 +000039 rm -f *.texi python-*.info python-*.info-[0-9]*
40
41
42# The HTML files are dependent on the .aux files, which are dependent on the
43# LaTeX source documents. This makes sure we can build info files from a
44# "clean" tree:
45
46$(HTMLDIR)/api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
47 (cd $(TOPDIR); $(MAKE) htmlapi)
48
49$(HTMLDIR)/ext/ext.html: $(PAPERDIR)/ext.aux
50 (cd $(TOPDIR); $(MAKE) htmlext)
51
52$(HTMLDIR)/lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX)
53 (cd $(TOPDIR); $(MAKE) htmllib)
54
55$(HTMLDIR)/mac/mac.html: $(MACFILES) $(BUILDINDEX)
56 (cd $(TOPDIR); $(MAKE) htmlmac)
57
58$(HTMLDIR)/ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX)
59 (cd $(TOPDIR); $(MAKE) htmlref)
60
61$(HTMLDIR)/tut/tut.html: $(PAPERDIR)/tut.aux
62 (cd $(TOPDIR); $(MAKE) htmltut)
63
64
65include ../Makefile.deps
66
67$(PAPERDIR)/api.aux: $(APIFILES)
68 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
69
70$(PAPERDIR)/ext.aux: $(EXTFILES)
71 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
72
73$(PAPERDIR)/lib.aux: $(LIBFILES)
74 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
75
76$(PAPERDIR)/ref.aux: $(REFFILES)
77 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
78
79$(PAPERDIR)/tut.aux: $(TUTFILES)
80 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)