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