blob: 1c7505cbf536437cfb102772f1820a64d30c6226 [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 \
Fred Drakec5efde81999-01-27 18:30:16 +000014 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 Drakec5efde81999-01-27 18:30:16 +000026# Not built by default; the conversion doesn't really handle it well.
Fred Drake78104a91999-01-08 15:33:38 +000027python-mac.info: $(HTMLDIR)/mac/mac.html $(SCRIPTS)
28 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000029
Fred Drake78104a91999-01-08 15:33:38 +000030python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS)
31 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000032
Fred Drake78104a91999-01-08 15:33:38 +000033python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS)
34 $(MKINFO) $<
Fred Drake47fd8fe1998-05-08 15:36:36 +000035
Fred Drake8981fdf1998-05-11 19:54:57 +000036
37clean:
Fred Drake78104a91999-01-08 15:33:38 +000038 rm -f *.texi~ *.texi
Fred Drake8981fdf1998-05-11 19:54:57 +000039
40clobber: clean
Fred Drake78104a91999-01-08 15:33:38 +000041 rm -f *.texi python-*.info python-*.info-[0-9]*
42
43
44# The HTML files are dependent on the .aux files, which are dependent on the
45# LaTeX source documents. This makes sure we can build info files from a
46# "clean" tree:
47
48$(HTMLDIR)/api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX)
49 (cd $(TOPDIR); $(MAKE) htmlapi)
50
51$(HTMLDIR)/ext/ext.html: $(PAPERDIR)/ext.aux
52 (cd $(TOPDIR); $(MAKE) htmlext)
53
54$(HTMLDIR)/lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX)
55 (cd $(TOPDIR); $(MAKE) htmllib)
56
57$(HTMLDIR)/mac/mac.html: $(MACFILES) $(BUILDINDEX)
58 (cd $(TOPDIR); $(MAKE) htmlmac)
59
60$(HTMLDIR)/ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX)
61 (cd $(TOPDIR); $(MAKE) htmlref)
62
63$(HTMLDIR)/tut/tut.html: $(PAPERDIR)/tut.aux
64 (cd $(TOPDIR); $(MAKE) htmltut)
65
66
67include ../Makefile.deps
68
69$(PAPERDIR)/api.aux: $(APIFILES)
70 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi)
71
72$(PAPERDIR)/ext.aux: $(EXTFILES)
73 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi)
74
75$(PAPERDIR)/lib.aux: $(LIBFILES)
76 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi)
77
78$(PAPERDIR)/ref.aux: $(REFFILES)
79 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi)
80
81$(PAPERDIR)/tut.aux: $(TUTFILES)
82 (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi)