1998-05-08 15:36:36 +00:00
|
|
|
# Generate the Python "info" documentation.
|
|
|
|
|
1999-01-08 15:33:38 +00:00
|
|
|
TOPDIR=..
|
|
|
|
TOOLSDIR=$(TOPDIR)/tools
|
|
|
|
HTMLDIR=$(TOPDIR)/html
|
1998-05-08 15:36:36 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
# The emacs binary used to build the info docs. GNU Emacs 21 is required.
|
|
|
|
EMACS=emacs
|
|
|
|
|
1999-01-08 15:33:38 +00:00
|
|
|
MKINFO=$(TOOLSDIR)/mkinfo
|
2002-05-03 04:50:51 +00: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 15:36:36 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
all: check-emacs-version \
|
|
|
|
python$(VERSION)-api.info python$(VERSION)-ext.info \
|
|
|
|
python$(VERSION)-lib.info python$(VERSION)-ref.info \
|
|
|
|
python$(VERSION)-tut.info python$(VERSION)-dist.info
|
1998-05-08 15:36:36 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
# python$(VERSION)-doc.info python$(VERSION)-inst.info
|
|
|
|
# python$(VERSION)-mac.info
|
1998-05-08 15:36:36 +00:00
|
|
|
|
2002-05-03 04:50:51 +00: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 15:36:36 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
python$(VERSION)-api.info: ../api/api.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1998-05-08 15:36:36 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
python$(VERSION)-ext.info: ../ext/ext.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
2002-05-03 04:50:51 +00:00
|
|
|
|
|
|
|
python$(VERSION)-lib.info: ../lib/lib.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1998-05-08 15:36:36 +00:00
|
|
|
|
1999-01-27 18:30:16 +00:00
|
|
|
# Not built by default; the conversion doesn't really handle it well.
|
2002-05-03 04:50:51 +00:00
|
|
|
python$(VERSION)-mac.info: ../mac/mac.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
2002-05-03 04:50:51 +00:00
|
|
|
|
|
|
|
python$(VERSION)-ref.info: ../ref/ref.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1999-01-08 15:33:38 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
python$(VERSION)-tut.info: ../tut/tut.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1999-01-08 15:33:38 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
# Not built by default; the conversion doesn't handle it at all.
|
|
|
|
python$(VERSION)-doc.info: ../doc/doc.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1998-05-08 15:36:36 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
python$(VERSION)-dist.info: ../dist/dist.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
2000-10-26 19:26:47 +00:00
|
|
|
|
2002-05-03 04:50:51 +00:00
|
|
|
# Not built by default; the conversion chokes on two @end multitable's
|
|
|
|
python$(VERSION)-inst.info: ../inst/inst.tex $(SCRIPTS)
|
2002-11-13 19:31:04 +00:00
|
|
|
EMACS=$(EMACS) $(MKINFO) $< $*.texi $@
|
1998-05-11 19:54:57 +00:00
|
|
|
|
|
|
|
clean:
|
1999-01-08 15:33:38 +00:00
|
|
|
rm -f *.texi~ *.texi
|
1998-05-11 19:54:57 +00:00
|
|
|
|
|
|
|
clobber: clean
|
2002-05-03 04:50:51 +00:00
|
|
|
rm -f *.texi python*-*.info python*-*.info-[0-9]*
|