summaryrefslogtreecommitdiffstats
path: root/Doc/Makefile
diff options
context:
space:
mode:
authorFred Drake <fdrake@acm.org>1998-04-24 21:07:22 (GMT)
committerFred Drake <fdrake@acm.org>1998-04-24 21:07:22 (GMT)
commit3af9f2514f9ebd48f9be9e033ff500e0ccb999e8 (patch)
treef83ec7d9ef43326fae8023362858ae1fc8a53564 /Doc/Makefile
parenta468404ddae90f66476284269ad87a293145a34f (diff)
downloadcpython-3af9f2514f9ebd48f9be9e033ff500e0ccb999e8.zip
cpython-3af9f2514f9ebd48f9be9e033ff500e0ccb999e8.tar.gz
cpython-3af9f2514f9ebd48f9be9e033ff500e0ccb999e8.tar.bz2
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.
Diffstat (limited to 'Doc/Makefile')
-rw-r--r--Doc/Makefile38
1 files changed, 21 insertions, 17 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index 2af9e23..c727638 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -48,13 +48,14 @@
# Where are the various programs?
LATEX= TEXINPUTS=$(TEXINPUTS) latex
PDFLATEX= TEXINPUTS=$(TEXINPUTS) pdflatex
-TEXINPUTS= texinputs:
+TEXINPUTS= .:$(srcdir):$(srcdir)/texinputs:
DVIPS= dvips -f -N0
DISTILL= distill
-MAKEINDEX= makeindex -s texinputs/myindex.ist
-L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file perl/l2hinit.perl
+MAKEINDEX= makeindex -s $(srcdir)/texinputs/myindex.ist
+L2H= TEXINPUTS=$(TEXINPUTS) latex2html -init_file $(L2HINIT)
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...
DESTDIR= /usr/local
@@ -66,7 +67,10 @@ DOCDESTDIR= $LIBDEST/doc
EMACS= emacs
PYTHON= python
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
@@ -78,8 +82,8 @@ INFOFILES= python-lib.info
PDFFILES= api.pdf ext.pdf lib.pdf tut.pdf
PSFILES= api.ps ext.ps lib.ps tut.ps
-MANSTYLES=texinputs/fncychap.sty texinputs/manual.cls texinputs/python.sty \
- texinputs/myindex.ist
+MANSTYLES=$(srcdir)/texinputs/fncychap.sty $(srcdir)/texinputs/manual.cls \
+ $(srcdir)/texinputs/python.sty $(srcdir)/texinputs/myindex.ist
# Main target
all: all-ps
@@ -126,10 +130,10 @@ tut-all: tut.dvi tut.pdf tut.ps l2htut
# This rule avoids creation of the intermediate PostScript files and uses
# only free software.
#
-$(PDFFILES): tools/toc2bkm.py
-.dvi.pdf: $*.bkm
+$(PDFFILES): $(srcdir)/tools/toc2bkm.py
+.dvi.pdf:
$(PDFLATEX) $*
- $(PYTHON) tools/toc2bkm.py $*
+ $(PYTHON) $(srcdir)/tools/toc2bkm.py $*
$(PDFLATEX) $*
# Dependencies
@@ -168,7 +172,7 @@ LIBFILES = lib.tex \
libuserdict.tex libdis.tex libxmllib.tex libqueue.tex \
liblocale.tex libbasehttp.tex libcopyreg.tex libsymbol.tex libtoken.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 \
libmacdnr.tex libmacfs.tex libmacos.tex libmacostools.tex \
@@ -176,13 +180,13 @@ MACLIBFILES = mac.tex libmac.tex libctb.tex libmacconsole.tex \
# Library document
lib.dvi: tools/indfix.py $(LIBFILES)
- tools/newind.py >$*.ind
- tools/newind.py modindex >mod$*.ind
+ $(srcdir)/tools/newind.py >$*.ind
+ $(srcdir)/tools/newind.py modindex >mod$*.ind
$(LATEX) $*
$(MAKEINDEX) mod$*.idx
- tools/fix_hack $*.idx
+ $(srcdir)/tools/fix_hack $*.idx
$(MAKEINDEX) $*.idx
- tools/indfix.py $*.ind
+ $(srcdir)/tools/indfix.py $*.ind
$(LATEX) $*
# Tutorial document
@@ -193,9 +197,9 @@ tut.dvi: tut.tex
# Extending & Embedding, Python/C API documents.
# Done this way to avoid repeated command sets.
.tex.dvi:
- tools/newind.py >$*.ind
+ $(srcdir)/tools/newind.py >$*.ind
$(LATEX) $*
- tools/fix_hack $*.idx
+ $(srcdir)/tools/fix_hack $*.idx
$(MAKEINDEX) $*.idx
$(LATEX) $*