Skip to content

Commit 47fd8fe

Browse files
committed
Move the rules to build the info files here.
1 parent 230b530 commit 47fd8fe

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

Doc/info/Makefile

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
# Generate the Python "info" documentation.
2+
3+
# These is only used for .info generation:
4+
EMACS= emacs
5+
MAKEINFO= makeinfo
6+
PYTHON= python
7+
PARTPARSE= $(PYTHON) ../tools/partparse.py
8+
9+
10+
all: python-lib.info
11+
12+
13+
.PRECIOUS: python-lib.texi
14+
15+
# The sed script in this target fixes a really nasty little condition in
16+
# libcgi.tex where \e has to be used in a group to get the right behavior,
17+
# and makeinfo can't handle a group without a leading @command. But at
18+
# least the info file gets generated.
19+
20+
lib1.texi: $(LIBFILES) texipre.dat texipost.dat ../tools/partparse.py
21+
$(PARTPARSE) -o $@ `../tools/whichlibs`
22+
sed 's/"{\\}n{\\}n/"\\n\\n/' $@ >temp.texi
23+
mv temp.texi $@
24+
25+
python-lib.texi: lib1.texi ../tools/fix.el
26+
cp lib1.texi temp.texi
27+
$(EMACS) -batch -l ../tools/fix.el -f save-buffer -kill
28+
mv temp.texi $@
29+
30+
python-lib.info: python-lib.texi
31+
$(MAKEINFO) --footnote-style end --fill-column 72 \
32+
--paragraph-indent 0 $<

0 commit comments

Comments
 (0)