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 \
|
2003-07-16 01:02:58 -03:00
|
|
|
api dist ext mac ref tut whatsnew \
|
|
|
|
lib
|
|
|
|
# doc inst
|
|
|
|
|
|
|
|
api: python$(VERSION)-api.info
|
|
|
|
dist: python$(VERSION)-dist.info
|
|
|
|
doc: python$(VERSION)-doc.info
|
|
|
|
ext: python$(VERSION)-ext.info
|
|
|
|
inst: python$(VERSION)-inst.info
|
|
|
|
lib: python$(VERSION)-lib.info
|
|
|
|
mac: python$(VERSION)-mac.info
|
|
|
|
ref: python$(VERSION)-ref.info
|
|
|
|
tut: python$(VERSION)-tut.info
|
|
|
|
whatsnew: $(WHATSNEW)
|
|
|
|
$(WHATSNEW): python$(VERSION)-$(WHATSNEW).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]*'`"; \
|
2007-08-02 18:28:57 -03:00
|
|
|
if `echo "$$v" | grep '^GNU Emacs 2[12]' >/dev/null 2>&1`; then \
|
2002-05-03 01:50:51 -03:00
|
|
|
echo "Using $(EMACS) to build the info docs"; \
|
|
|
|
else \
|
2007-08-02 18:28:57 -03:00
|
|
|
echo "GNU Emacs 21 or 22 is required to build the info docs"; \
|
2002-05-03 01:50:51 -03:00
|
|
|
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
|
|
|
|
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
|
|
|
|
2003-07-16 01:02:58 -03:00
|
|
|
# Not built by default; the conversion doesn't handle \p and \op
|
2002-05-03 01:50:51 -03:00
|
|
|
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
|
|
|
|
2003-07-16 01:02:58 -03:00
|
|
|
# Not built by default; the conversion chokes on \installscheme
|
2002-05-03 01:50:51 -03:00
|
|
|
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
|
|
|
|
2003-07-16 01:02:58 -03:00
|
|
|
# "whatsnew20" doesn't currently work
|
|
|
|
python$(VERSION)-$(WHATSNEW).info: ../whatsnew/$(WHATSNEW).tex $(SCRIPTS)
|
|
|
|
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]*
|