1 | # Generate the Python "info" documentation.
|
---|
2 |
|
---|
3 | TOPDIR=..
|
---|
4 | TOOLSDIR=$(TOPDIR)/tools
|
---|
5 | HTMLDIR=$(TOPDIR)/html
|
---|
6 |
|
---|
7 | # The emacs binary used to build the info docs. GNU Emacs 21 is required.
|
---|
8 | EMACS=emacs
|
---|
9 |
|
---|
10 | MKINFO=$(TOOLSDIR)/mkinfo
|
---|
11 | SCRIPTS=$(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
|
---|
16 | VERSION=
|
---|
17 |
|
---|
18 | all: check-emacs-version \
|
---|
19 | api dist ext mac ref tut whatsnew \
|
---|
20 | lib
|
---|
21 | # doc inst
|
---|
22 |
|
---|
23 | api: python$(VERSION)-api.info
|
---|
24 | dist: python$(VERSION)-dist.info
|
---|
25 | doc: python$(VERSION)-doc.info
|
---|
26 | ext: python$(VERSION)-ext.info
|
---|
27 | inst: python$(VERSION)-inst.info
|
---|
28 | lib: python$(VERSION)-lib.info
|
---|
29 | mac: python$(VERSION)-mac.info
|
---|
30 | ref: python$(VERSION)-ref.info
|
---|
31 | tut: python$(VERSION)-tut.info
|
---|
32 | whatsnew: $(WHATSNEW)
|
---|
33 | $(WHATSNEW): python$(VERSION)-$(WHATSNEW).info
|
---|
34 |
|
---|
35 | check-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 |
|
---|
45 | python$(VERSION)-api.info: ../api/api.tex $(SCRIPTS)
|
---|
46 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
47 |
|
---|
48 | python$(VERSION)-ext.info: ../ext/ext.tex $(SCRIPTS)
|
---|
49 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
50 |
|
---|
51 | python$(VERSION)-lib.info: ../lib/lib.tex $(SCRIPTS)
|
---|
52 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
53 |
|
---|
54 | python$(VERSION)-mac.info: ../mac/mac.tex $(SCRIPTS)
|
---|
55 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
56 |
|
---|
57 | python$(VERSION)-ref.info: ../ref/ref.tex $(SCRIPTS)
|
---|
58 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
59 |
|
---|
60 | python$(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
|
---|
64 | python$(VERSION)-doc.info: ../doc/doc.tex $(SCRIPTS)
|
---|
65 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
66 |
|
---|
67 | python$(VERSION)-dist.info: ../dist/dist.tex $(SCRIPTS)
|
---|
68 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
69 |
|
---|
70 | # Not built by default; the conversion chokes on \installscheme
|
---|
71 | python$(VERSION)-inst.info: ../inst/inst.tex $(SCRIPTS)
|
---|
72 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
73 |
|
---|
74 | # "whatsnew20" doesn't currently work
|
---|
75 | python$(VERSION)-$(WHATSNEW).info: ../whatsnew/$(WHATSNEW).tex $(SCRIPTS)
|
---|
76 | EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
---|
77 |
|
---|
78 | clean:
|
---|
79 | rm -f *.texi~ *.texi
|
---|
80 |
|
---|
81 | clobber: clean
|
---|
82 | rm -f *.texi python*-*.info python*-*.info-[0-9]*
|
---|