blob: 412d0e40a37a165cd790cebed90e9e62dacdc273 [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
Fred Drake79cbadc1999-01-14 17:13:03 +000010SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo \
11 $(TOOLSDIR)/fixinfo.el
Fred Drake78104a91999-01-08 15:33:38 +000012
13all: python-api.info python-ext.info python-lib.info \
14 python-mac.info python-ref.info python-tut.info
Fred Drake47fd8fe1998-05-08 15:36:36 +000015
16
Fred Drake78104a91999-01-08 15:33:38 +000017python-api.info: $(HTMLDIR)/api/api.html $(SCRIPTS)
18 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000019
Fred Drake78104a91999-01-08 15:33:38 +000020python-ext.info: $(HTMLDIR)/ext/ext.html $(SCRIPTS)
21 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000022
Fred Drake78104a91999-01-08 15:33:38 +000023python-lib.info: $(HTMLDIR)/lib/lib.html $(SCRIPTS)
24 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000025
Fred Drake78104a91999-01-08 15:33:38 +000026python-mac.info: $(HTMLDIR)/mac/mac.html $(SCRIPTS)
27 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000028
Fred Drake78104a91999-01-08 15:33:38 +000029python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS)
30 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000031
Fred Drake78104a91999-01-08 15:33:38 +000032python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS)
33 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000034
Fred Drake8981fdf1998-05-11 19:54:57 +000035
36clean:
Fred Drake78104a91999-01-08 15:33:38 +000037 rm -f *.texi~ *.texi
Fred Drake8981fdf1998-05-11 19:54:57 +000038
39clobber: clean
Fred Drake78104a91999-01-08 15:33:38 +000040 rm -f *.texi python-*.info python-*.info-[0-9]*
41
42
43# The HTML files are dependent on the .aux files, which are dependent on the
44# LaTeX source documents. This makes sure we can build info files from a
45# "clean" tree:
46
47$(HTMLDIR)/api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
48 (cd $(TOPDIR); $(MAKE) htmlapi)
49
50$(HTMLDIR)/ext/ext.html: $(PAPERDIR)/ext.aux
51 (cd $(TOPDIR); $(MAKE) htmlext)
52
53$(HTMLDIR)/lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX)
54 (cd $(TOPDIR); $(MAKE) htmllib)
55
56$(HTMLDIR)/mac/mac.html: $(MACFILES) $(BUILDINDEX)
57 (cd $(TOPDIR); $(MAKE) htmlmac)
58
59$(HTMLDIR)/ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX)
60 (cd $(TOPDIR); $(MAKE) htmlref)
61
62$(HTMLDIR)/tut/tut.html: $(PAPERDIR)/tut.aux
63 (cd $(TOPDIR); $(MAKE) htmltut)
64
65
66include ../Makefile.deps
67
68$(PAPERDIR)/api.aux: $(APIFILES)
69 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
70
71$(PAPERDIR)/ext.aux: $(EXTFILES)
72 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
73
74$(PAPERDIR)/lib.aux: $(LIBFILES)
75 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
76
77$(PAPERDIR)/ref.aux: $(REFFILES)
78 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
79
80$(PAPERDIR)/tut.aux: $(TUTFILES)
81 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)