source: trunk/essentials/dev-lang/python/Doc/info/Makefile

Last change on this file was 3225, checked in by bird, 18 years ago

Python 2.5

File size: 2.4 KB
Line 
1# Generate the Python "info" documentation.
2
3TOPDIR=..
4TOOLSDIR=$(TOPDIR)/tools
5HTMLDIR=$(TOPDIR)/html
6
7# The emacs binary used to build the info docs. GNU Emacs 21 is required.
8EMACS=emacs
9
10MKINFO=$(TOOLSDIR)/mkinfo
11SCRIPTS=$(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo $(TOOLSDIR)/py2texi.el
12
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
16VERSION=
17
18all: check-emacs-version \
19 api dist ext mac ref tut whatsnew \
20 lib
21# doc inst
22
23api: python$(VERSION)-api.info
24dist: python$(VERSION)-dist.info
25doc: python$(VERSION)-doc.info
26ext: python$(VERSION)-ext.info
27inst: python$(VERSION)-inst.info
28lib: python$(VERSION)-lib.info
29mac: python$(VERSION)-mac.info
30ref: python$(VERSION)-ref.info
31tut: python$(VERSION)-tut.info
32whatsnew: $(WHATSNEW)
33$(WHATSNEW): python$(VERSION)-$(WHATSNEW).info
34
35check-emacs-version:
36 @v="`$(EMACS) --version 2>&1 | egrep '^(GNU |X)Emacs [12]*'`"; \
37 if `echo "$$v" | grep '^GNU Emacs 21' >/dev/null 2>&1`; then \
38 echo "Using $(EMACS) to build the info docs"; \
39 else \
40 echo "GNU Emacs 21 is required to build the info docs"; \
41 echo "Found $$v"; \
42 false; \
43 fi
44
45python$(VERSION)-api.info: ../api/api.tex $(SCRIPTS)
46 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
47
48python$(VERSION)-ext.info: ../ext/ext.tex $(SCRIPTS)
49 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
50
51python$(VERSION)-lib.info: ../lib/lib.tex $(SCRIPTS)
52 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
53
54python$(VERSION)-mac.info: ../mac/mac.tex $(SCRIPTS)
55 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
56
57python$(VERSION)-ref.info: ../ref/ref.tex $(SCRIPTS)
58 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
59
60python$(VERSION)-tut.info: ../tut/tut.tex $(SCRIPTS)
61 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
62
63# Not built by default; the conversion doesn't handle \p and \op
64python$(VERSION)-doc.info: ../doc/doc.tex $(SCRIPTS)
65 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
66
67python$(VERSION)-dist.info: ../dist/dist.tex $(SCRIPTS)
68 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
69
70# Not built by default; the conversion chokes on \installscheme
71python$(VERSION)-inst.info: ../inst/inst.tex $(SCRIPTS)
72 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
73
74# "whatsnew20" doesn't currently work
75python$(VERSION)-$(WHATSNEW).info: ../whatsnew/$(WHATSNEW).tex $(SCRIPTS)
76 EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
77
78clean:
79 rm -f *.texi~ *.texi
80
81clobber: clean
82 rm -f *.texi python*-*.info python*-*.info-[0-9]*
Note: See TracBrowser for help on using the repository browser.