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 |
| 10 | SCRIPTS=$(TOOLSDIR)/html2texi.pl $(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo |
| 11 | |
| 12 | all: python-api.info python-ext.info python-lib.info \ |
| 13 | python-mac.info python-ref.info python-tut.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 | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 25 | python-mac.info: $(HTMLDIR)/mac/mac.html $(SCRIPTS) |
| 26 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 27 | |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 28 | python-ref.info: $(HTMLDIR)/ref/ref.html $(SCRIPTS) |
| 29 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 30 | |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 31 | python-tut.info: $(HTMLDIR)/tut/tut.html $(SCRIPTS) |
| 32 | $(MKINFO) $< |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 33 | |
Fred Drake | 8981fdf | 1998-05-11 19:54:57 +0000 | [diff] [blame] | 34 | |
| 35 | clean: |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 36 | rm -f *.texi~ *.texi |
Fred Drake | 8981fdf | 1998-05-11 19:54:57 +0000 | [diff] [blame] | 37 | |
| 38 | clobber: clean |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 39 | rm -f *.texi python-*.info python-*.info-[0-9]* |
| 40 | |
| 41 | |
| 42 | # The HTML files are dependent on the .aux files, which are dependent on the |
| 43 | # LaTeX source documents. This makes sure we can build info files from a |
| 44 | # "clean" tree: |
| 45 | |
| 46 | $(HTMLDIR)/api/api.html: $(PAPERDIR)/api.aux $(BUILDINDEX) |
| 47 | (cd $(TOPDIR); $(MAKE) htmlapi) |
| 48 | |
| 49 | $(HTMLDIR)/ext/ext.html: $(PAPERDIR)/ext.aux |
| 50 | (cd $(TOPDIR); $(MAKE) htmlext) |
| 51 | |
| 52 | $(HTMLDIR)/lib/lib.html: $(PAPERDIR)/lib.aux $(BUILDINDEX) |
| 53 | (cd $(TOPDIR); $(MAKE) htmllib) |
| 54 | |
| 55 | $(HTMLDIR)/mac/mac.html: $(MACFILES) $(BUILDINDEX) |
| 56 | (cd $(TOPDIR); $(MAKE) htmlmac) |
| 57 | |
| 58 | $(HTMLDIR)/ref/ref.html: $(PAPERDIR)/ref.aux $(BUILDINDEX) |
| 59 | (cd $(TOPDIR); $(MAKE) htmlref) |
| 60 | |
| 61 | $(HTMLDIR)/tut/tut.html: $(PAPERDIR)/tut.aux |
| 62 | (cd $(TOPDIR); $(MAKE) htmltut) |
| 63 | |
| 64 | |
| 65 | include ../Makefile.deps |
| 66 | |
| 67 | $(PAPERDIR)/api.aux: $(APIFILES) |
| 68 | (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) api.dvi) |
| 69 | |
| 70 | $(PAPERDIR)/ext.aux: $(EXTFILES) |
| 71 | (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ext.dvi) |
| 72 | |
| 73 | $(PAPERDIR)/lib.aux: $(LIBFILES) |
| 74 | (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) lib.dvi) |
| 75 | |
| 76 | $(PAPERDIR)/ref.aux: $(REFFILES) |
| 77 | (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) ref.dvi) |
| 78 | |
| 79 | $(PAPERDIR)/tut.aux: $(TUTFILES) |
| 80 | (cd $(PAPERDIR); $(MAKE) PAPER=$(PAPER) tut.dvi) |