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