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