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 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 7 | # The emacs binary used to build the info docs. GNU Emacs 21 is required. |
| 8 | EMACS=emacs |
| 9 | |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 10 | MKINFO=$(TOOLSDIR)/mkinfo |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 11 | SCRIPTS=$(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo $(TOOLSDIR)/py2texi.el |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 12 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 13 | # set VERSION to code the VERSION number into the info file name |
| 14 | # allowing installation of more than one set of python info docs |
| 15 | # into the same directory |
| 16 | VERSION= |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 17 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 18 | all: check-emacs-version \ |
| 19 | python$(VERSION)-api.info python$(VERSION)-ext.info \ |
| 20 | python$(VERSION)-lib.info python$(VERSION)-ref.info \ |
| 21 | python$(VERSION)-tut.info python$(VERSION)-dist.info |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 22 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 23 | # python$(VERSION)-doc.info python$(VERSION)-inst.info |
| 24 | # python$(VERSION)-mac.info |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 25 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 26 | check-emacs-version: |
| 27 | @v="`$(EMACS) --version 2>&1 | egrep '^(GNU |X)Emacs [12]*'`"; \ |
| 28 | if `echo "$$v" | grep '^GNU Emacs 21' >/dev/null 2>&1`; then \ |
| 29 | echo "Using $(EMACS) to build the info docs"; \ |
| 30 | else \ |
| 31 | echo "GNU Emacs 21 is required to build the info docs"; \ |
| 32 | echo "Found $$v"; \ |
| 33 | false; \ |
| 34 | fi |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 35 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 36 | python$(VERSION)-api.info: ../api/api.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 37 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 38 | |
| 39 | python$(VERSION)-ext.info: ../ext/ext.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 40 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 41 | |
| 42 | python$(VERSION)-lib.info: ../lib/lib.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 43 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 44 | |
Fred Drake | c5efde8 | 1999-01-27 18:30:16 +0000 | [diff] [blame] | 45 | # Not built by default; the conversion doesn't really handle it well. |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 46 | python$(VERSION)-mac.info: ../mac/mac.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 47 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 48 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 49 | python$(VERSION)-ref.info: ../ref/ref.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 50 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 51 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 52 | python$(VERSION)-tut.info: ../tut/tut.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 53 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 54 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 55 | # Not built by default; the conversion doesn't handle it at all. |
| 56 | python$(VERSION)-doc.info: ../doc/doc.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 57 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | ca92eeb | 2000-10-26 19:26:47 +0000 | [diff] [blame] | 58 | |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 59 | python$(VERSION)-dist.info: ../dist/dist.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 60 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 61 | |
| 62 | # Not built by default; the conversion chokes on two @end multitable's |
| 63 | python$(VERSION)-inst.info: ../inst/inst.tex $(SCRIPTS) |
Fred Drake | 66abcee | 2002-11-13 19:31:04 +0000 | [diff] [blame] | 64 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@ |
Fred Drake | 8981fdf | 1998-05-11 19:54:57 +0000 | [diff] [blame] | 65 | |
| 66 | clean: |
Fred Drake | 78104a9 | 1999-01-08 15:33:38 +0000 | [diff] [blame] | 67 | rm -f *.texi~ *.texi |
Fred Drake | 8981fdf | 1998-05-11 19:54:57 +0000 | [diff] [blame] | 68 | |
| 69 | clobber: clean |
Fred Drake | bfc18bd | 2002-05-03 04:50:51 +0000 | [diff] [blame] | 70 | rm -f *.texi python*-*.info python*-*.info-[0-9]* |