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 | PAPER=letter |
| 4 | TOPDIR=.. |
| 5 | TOOLSDIR=$(TOPDIR)/tools |
| 6 | PAPERDIR=$(TOPDIR)/paper-$(PAPER) |
| 7 | HTMLDIR=$(TOPDIR)/html |
| 8 | |
| 9 | MKINFO=$(TOOLSDIR)/mkinfo |
Fred Drake | 79cbadc | 1999-01-14 17:13:03 +0000 | [diff] [blame] | 10 | SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo \ |
| 11 | $(TOOLSDIR)/fixinfo.el |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 12 | |
| 13 | all: python-api.info python-ext.info python-lib.info \ |
Fred Drake | c5efde8 | 1999-01-27 18:30:16 +0000 | [diff] [blame^] | 14 | python-ref.info python-tut.info |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 15 | |
| 16 | |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 17 | python-api.info: $(HTMLDIR)/api/api.html $(SCRIPTS) |
| 18 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 19 | |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 20 | python-ext.info: $(HTMLDIR)/ext/ext.html $(SCRIPTS) |
| 21 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 22 | |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 23 | python-lib.info: $(HTMLDIR)/lib/lib.html $(SCRIPTS) |
| 24 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 25 | |
Fred Drake | c5efde8 | 1999-01-27 18:30:16 +0000 | [diff] [blame^] | 26 | # Not built by default; the conversion doesn't really handle it well. |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 27 | python-mac.info: $(HTMLDIR)/mac/mac.html $(SCRIPTS) |
| 28 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 29 | |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 30 | python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS) |
| 31 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 32 | |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 33 | python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS) |
| 34 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 35 | |
Fred Drake | 8981fdf | 1998-05-11 19:54:57 +0000 | [diff] [blame] | 36 | |
| 37 | clean: |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 38 | rm -f *.texi~ *.texi |
Fred Drake | 8981fdf | 1998-05-11 19:54:57 +0000 | [diff] [blame] | 39 | |
| 40 | clobber: clean |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 41 | 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 | |
| 67 | include ../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) |