Fred Drake | 47fd8fe | 1998-05-08 15:36:36 +0000 | [diff] [blame] | 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 $< |
Fred Drake | 8981fdf | 1998-05-11 19:54:57 +0000 | [diff] [blame^] | 33 | |
| 34 | clean: |
| 35 | rm -f *~ *.texi |
| 36 | |
| 37 | clobber: clean |
| 38 | rm -f *.texi python-???.info python-???.info-[0-9]* |