blob: dcad793d7b97f431b8fef07c69900c2250d84694 [file] [log] [blame]
Fred Drake47fd8fe1998-05-08 15:36:36 +00001# Generate the Python "info" documentation.
2
3# These is only used for .info generation:
4EMACS= emacs
5MAKEINFO= makeinfo
6PYTHON= python
7PARTPARSE= $(PYTHON) ../tools/partparse.py
8
9
10all: 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
20lib1.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
25python-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
30python-lib.info: python-lib.texi
31 $(MAKEINFO) --footnote-style end --fill-column 72 \
32 --paragraph-indent 0 $<
Fred Drake8981fdf1998-05-11 19:54:57 +000033
34clean:
35 rm -f *~ *.texi
36
37clobber: clean
38 rm -f *.texi python-???.info python-???.info-[0-9]*