1998-05-08 12:36:36 -03:00
|
|
|
# Generate the Python "info" documentation.
|
|
|
|
|
1999-01-08 11:33:38 -04:00
|
|
|
TOPDIR=..
|
|
|
|
TOOLSDIR=$(TOPDIR)/tools
|
|
|
|
HTMLDIR=$(TOPDIR)/html
|
1998-05-08 12:36:36 -03:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
# The emacs binary used to build the info docs. GNU Emacs 21 is required.
|
|
|
|
EMACS=emacs
|
|
|
|
|
1999-01-08 11:33:38 -04:00
|
|
|
MKINFO=$(TOOLSDIR)/mkinfo
|
2002-05-03 01:50:51 -03:00
|
|
|
SCRIPTS=$(TOOLSDIR)/checkargs.pm $(TOOLSDIR)/mkinfo $(TOOLSDIR)/py2texi.el
|
|
|
|
|
|
|
|
# set VERSION to code the VERSION number into the info file name
|
|
|
|
# allowing installation of more than one set of python info docs
|
|
|
|
# into the same directory
|
|
|
|
VERSION=
|
1998-05-08 12:36:36 -03:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
all: check-emacs-version \
|
|
|
|
python$(VERSION)-api.info python$(VERSION)-ext.info \
|
|
|
|
python$(VERSION)-lib.info python$(VERSION)-ref.info \
|
2003-07-02 11:25:04 -03:00
|
|
|
python$(VERSION)-tut.info python$(VERSION)-dist.info \
|
|
|
|
python$(VERSION)-mac.info
|
1998-05-08 12:36:36 -03:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
# python$(VERSION)-doc.info python$(VERSION)-inst.info
|
1998-05-08 12:36:36 -03:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
check-emacs-version:
|
|
|
|
@v="`$(EMACS) --version 2>&1 | egrep '^(GNU |X)Emacs [12]*'`"; \
|
|
|
|
if `echo "$$v" | grep '^GNU Emacs 21' >/dev/null 2>&1`; then \
|
|
|
|
echo "Using $(EMACS) to build the info docs"; \
|
|
|
|
else \
|
|
|
|
echo "GNU Emacs 21 is required to build the info docs"; \
|
|
|
|
echo "Found $$v"; \
|
|
|
|
false; \
|
|
|
|
fi
|
1998-05-08 12:36:36 -03:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
python$(VERSION)-api.info: ../api/api.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1998-05-08 12:36:36 -03:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
python$(VERSION)-ext.info: ../ext/ext.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
2002-05-03 01:50:51 -03:00
|
|
|
|
|
|
|
python$(VERSION)-lib.info: ../lib/lib.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1998-05-08 12:36:36 -03:00
|
|
|
|
1999-01-27 14:30:16 -04:00
|
|
|
# Not built by default; the conversion doesn't really handle it well.
|
2002-05-03 01:50:51 -03:00
|
|
|
python$(VERSION)-mac.info: ../mac/mac.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
2002-05-03 01:50:51 -03:00
|
|
|
|
|
|
|
python$(VERSION)-ref.info: ../ref/ref.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1999-01-08 11:33:38 -04:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
python$(VERSION)-tut.info: ../tut/tut.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1999-01-08 11:33:38 -04:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
# Not built by default; the conversion doesn't handle it at all.
|
|
|
|
python$(VERSION)-doc.info: ../doc/doc.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1998-05-08 12:36:36 -03:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
python$(VERSION)-dist.info: ../dist/dist.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
2000-10-26 16:26:47 -03:00
|
|
|
|
2002-05-03 01:50:51 -03:00
|
|
|
# Not built by default; the conversion chokes on two @end multitable's
|
|
|
|
python$(VERSION)-inst.info: ../inst/inst.tex $(SCRIPTS)
|
2002-11-13 15:31:04 -04:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1998-05-11 16:54:57 -03:00
|
|
|
|
|
|
|
clean:
|
1999-01-08 11:33:38 -04:00
|
|
|
rm -f *.texi~ *.texi
|
1998-05-11 16:54:57 -03:00
|
|
|
|
|
|
|
clobber: clean
|
2002-05-03 01:50:51 -03:00
|
|
|
rm -f *.texi python*-*.info python*-*.info-[0-9]*
|