blob: a2c44d3f65ca6bf51052d70bf6a21b219aa7cc25 [file] [log] [blame]
Fred Drake47fd8fe1998-05-08 15:36:36 +00001# Generate the Python "info" documentation.
2
Fred Drake78104a91999-01-08 15:33:38 +00003TOPDIR=..
4TOOLSDIR=$(TOPDIR)/tools
Fred Drake78104a91999-01-08 15:33:38 +00005HTMLDIR=$(TOPDIR)/html
6
7MKINFO=$(TOOLSDIR)/mkinfo
Fred Drake79cbadc1999-01-14 17:13:03 +00008SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo \
9 $(TOOLSDIR)/fixinfo.el
Fred Drake78104a91999-01-08 15:33:38 +000010
11all: python-api.info python-ext.info python-lib.info \
Fred Drakeca92eeb2000-10-26 19:26:47 +000012 python-ref.info python-tut.info \
13 python-dist.info python-inst.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 Drakec5efde81999-01-27 18:30:16 +000025# Not built by default; the conversion doesn't really handle it well.
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 Drakeca92eeb2000-10-26 19:26:47 +000035python-dist.info: $(HTMLDIR)/dist/dist.html $(SCRIPTS)
36 $(MKINFO) $<
37
38python-inst.info: $(HTMLDIR)/inst/inst.html $(SCRIPTS)
39 $(MKINFO) $<
Fred Drake8981fdf1998-05-11 19:54:57 +000040
41clean:
Fred Drake78104a91999-01-08 15:33:38 +000042 rm -f *.texi~ *.texi
Fred Drake8981fdf1998-05-11 19:54:57 +000043
44clobber: clean
Fred Drake78104a91999-01-08 15:33:38 +000045 rm -f *.texi python-*.info python-*.info-[0-9]*
46
47
Fred Drakeca92eeb2000-10-26 19:26:47 +000048# This makes sure we can build info files from a "clean" tree,
49# in case we haven't already built the HTML:
Fred Drake78104a91999-01-08 15:33:38 +000050
Fred Drakeca92eeb2000-10-26 19:26:47 +000051$(HTMLDIR)/api/api.html:
Fred Drake16649a82001-07-17 16:48:55 +000052 cd $(HTMLDIR) && $(MAKE) api
Fred Drake78104a91999-01-08 15:33:38 +000053
Fred Drakeca92eeb2000-10-26 19:26:47 +000054$(HTMLDIR)/ext/ext.html:
Fred Drake16649a82001-07-17 16:48:55 +000055 cd $(HTMLDIR) && $(MAKE) ext
Fred Drake78104a91999-01-08 15:33:38 +000056
Fred Drakeca92eeb2000-10-26 19:26:47 +000057$(HTMLDIR)/lib/lib.html:
Fred Drake16649a82001-07-17 16:48:55 +000058 cd $(HTMLDIR) && $(MAKE) lib
Fred Drake78104a91999-01-08 15:33:38 +000059
Fred Drakeca92eeb2000-10-26 19:26:47 +000060$(HTMLDIR)/mac/mac.html:
Fred Drake16649a82001-07-17 16:48:55 +000061 cd $(HTMLDIR) && $(MAKE) mac
Fred Drake78104a91999-01-08 15:33:38 +000062
Fred Drakeca92eeb2000-10-26 19:26:47 +000063$(HTMLDIR)/ref/ref.html:
Fred Drake16649a82001-07-17 16:48:55 +000064 cd $(HTMLDIR) && $(MAKE) ref
Fred Drake78104a91999-01-08 15:33:38 +000065
Fred Drakeca92eeb2000-10-26 19:26:47 +000066$(HTMLDIR)/tut/tut.html:
Fred Drake16649a82001-07-17 16:48:55 +000067 cd $(HTMLDIR) && $(MAKE) tut
Fred Drake78104a91999-01-08 15:33:38 +000068
Fred Drakeca92eeb2000-10-26 19:26:47 +000069$(HTMLDIR)/dist/dist.html:
Fred Drake16649a82001-07-17 16:48:55 +000070 cd $(HTMLDIR) && $(MAKE) dist
Fred Drake78104a91999-01-08 15:33:38 +000071
Fred Drakeca92eeb2000-10-26 19:26:47 +000072$(HTMLDIR)/inst/inst.html:
Fred Drake16649a82001-07-17 16:48:55 +000073 cd $(HTMLDIR) && $(MAKE) inst