Commit 3af9f251 authored by Fred Drake's avatar Fred Drake

Added libpoplib.tex to dependencies for the library reference.

Some mods to allow PS to be generated when the current dir is *not* Doc;
to help out with generating A4 versions.
parent a468404d
...@@ -48,13 +48,14 @@ ...@@ -48,13 +48,14 @@
# Where are the various programs? # Where are the various programs?
LATEX= TEXINPUTS=$(TEXINPUTS) latex LATEX= TEXINPUTS=$(TEXINPUTS) latex
PDFLATEX= TEXINPUTS=$(TEXINPUTS) pdflatex PDFLATEX= TEXINPUTS=$(TEXINPUTS) pdflatex
TEXINPUTS= texinputs: TEXINPUTS= .:$(srcdir):$(srcdir)/texinputs:
DVIPS= dvips -f -N0 DVIPS= dvips -f -N0
DISTILL= distill DISTILL= distill
MAKEINDEX= makeindex -s texinputs/myindex.ist MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist
L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file perl/l2hinit.perl L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file $(L2HINIT)
L2HARGS= L2HARGS=
WEBCHECKER= $(PYTHON) ../Tools/webchecker/webchecker.py L2HINIT= $(srcdir)/perl/l2hinit.perl
WEBCHECKER= $(PYTHON) $(srcdir)/../Tools/webchecker/webchecker.py
# Install destination -- not used now but might be useful some time... # Install destination -- not used now but might be useful some time...
DESTDIR= /usr/local DESTDIR= /usr/local
...@@ -66,7 +67,10 @@ DOCDESTDIR= $LIBDEST/doc ...@@ -66,7 +67,10 @@ DOCDESTDIR= $LIBDEST/doc
EMACS= emacs EMACS= emacs
PYTHON= python PYTHON= python
MAKEINFO= makeinfo MAKEINFO= makeinfo
PARTPARSE= $(PYTHON) tools/partparse.py PARTPARSE= $(PYTHON) $(srcdir)/tools/partparse.py
srcdir=.
VPATH=.
# Ideally, you shouldn't need to edit beyond this point # Ideally, you shouldn't need to edit beyond this point
...@@ -78,8 +82,8 @@ INFOFILES= python-lib.info ...@@ -78,8 +82,8 @@ INFOFILES= python-lib.info
PDFFILES= api.pdf ext.pdf lib.pdf tut.pdf PDFFILES= api.pdf ext.pdf lib.pdf tut.pdf
PSFILES= api.ps ext.ps lib.ps tut.ps PSFILES= api.ps ext.ps lib.ps tut.ps
MANSTYLES=texinputs/fncychap.sty texinputs/manual.cls texinputs/python.sty \ MANSTYLES=$(srcdir)/texinputs/fncychap.sty $(srcdir)/texinputs/manual.cls \
texinputs/myindex.ist $(srcdir)/texinputs/python.sty $(srcdir)/texinputs/myindex.ist
# Main target # Main target
all: all-ps all: all-ps
...@@ -126,10 +130,10 @@ tut-all: tut.dvi tut.pdf tut.ps l2htut ...@@ -126,10 +130,10 @@ tut-all: tut.dvi tut.pdf tut.ps l2htut
# This rule avoids creation of the intermediate PostScript files and uses # This rule avoids creation of the intermediate PostScript files and uses
# only free software. # only free software.
# #
$(PDFFILES): tools/toc2bkm.py $(PDFFILES): $(srcdir)/tools/toc2bkm.py
.dvi.pdf: $*.bkm .dvi.pdf:
$(PDFLATEX) $* $(PDFLATEX) $*
$(PYTHON) tools/toc2bkm.py $* $(PYTHON) $(srcdir)/tools/toc2bkm.py $*
$(PDFLATEX) $* $(PDFLATEX) $*
# Dependencies # Dependencies
...@@ -168,7 +172,7 @@ LIBFILES = lib.tex \ ...@@ -168,7 +172,7 @@ LIBFILES = lib.tex \
libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \ libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \
liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.tex \ liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.tex \
libframework.tex libminiae.tex libbinhex.tex libuu.tex libsunaudio.tex \ libframework.tex libminiae.tex libbinhex.tex libuu.tex libsunaudio.tex \
libfileinput.tex libimaplib.tex libfileinput.tex libimaplib.tex libpoplib.tex
MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \ MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \
libmacdnr.tex libmacfs.tex libmacos.tex libmacostools.tex \ libmacdnr.tex libmacfs.tex libmacos.tex libmacostools.tex \
...@@ -176,13 +180,13 @@ MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \ ...@@ -176,13 +180,13 @@ MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \
# Library document # Library document
lib.dvi: tools/indfix.py $(LIBFILES) lib.dvi: tools/indfix.py $(LIBFILES)
tools/newind.py >$*.ind $(srcdir)/tools/newind.py >$*.ind
tools/newind.py modindex >mod$*.ind $(srcdir)/tools/newind.py modindex >mod$*.ind
$(LATEX) $* $(LATEX) $*
$(MAKEINDEX) mod$*.idx $(MAKEINDEX) mod$*.idx
tools/fix_hack $*.idx $(srcdir)/tools/fix_hack $*.idx
$(MAKEINDEX) $*.idx $(MAKEINDEX) $*.idx
tools/indfix.py $*.ind $(srcdir)/tools/indfix.py $*.ind
$(LATEX) $* $(LATEX) $*
# Tutorial document # Tutorial document
...@@ -193,9 +197,9 @@ tut.dvi: tut.tex ...@@ -193,9 +197,9 @@ tut.dvi: tut.tex
# Extending & Embedding, Python/C API documents. # Extending & Embedding, Python/C API documents.
# Done this way to avoid repeated command sets. # Done this way to avoid repeated command sets.
.tex.dvi: .tex.dvi:
tools/newind.py >$*.ind $(srcdir)/tools/newind.py >$*.ind
$(LATEX) $* $(LATEX) $*
tools/fix_hack $*.idx $(srcdir)/tools/fix_hack $*.idx
$(MAKEINDEX) $*.idx $(MAKEINDEX) $*.idx
$(LATEX) $* $(LATEX) $*
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment