summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1991-01-22 11:47:14 (GMT)
committerGuido van Rossum <guido@python.org>1991-01-22 11:47:14 (GMT)
commitb3fa13cef7fc0add41da0ed22fd47c388c3a1bf1 (patch)
tree2b4fc891a991101ca7832255750c252963c930c5 /Doc
parent515834a99b946d8c38af0f2d33b2e950ee3b7d12 (diff)
downloadcpython-b3fa13cef7fc0add41da0ed22fd47c388c3a1bf1.zip
cpython-b3fa13cef7fc0add41da0ed22fd47c388c3a1bf1.tar.gz
cpython-b3fa13cef7fc0add41da0ed22fd47c388c3a1bf1.tar.bz2
Made the move to TeX.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Makefile55
1 files changed, 40 insertions, 15 deletions
diff --git a/Doc/Makefile b/Doc/Makefile
index ed9f067..9cae7c0 100644
--- a/Doc/Makefile
+++ b/Doc/Makefile
@@ -1,40 +1,65 @@
+LATEX= latex
+DVIPS= dvips
+TEXPREVIEW= texsgi
+
+PRINT= lpr
+
TBL= tbl
TROFF= ditroff
MS= -ms
FUNNYTAB= $$HOME/lib/funnytab
-PREVIEW= dpv -f $(FUNNYTAB)
+PREVIEW= dpv -Pfa -f $(FUNNYTAB)
PSDIT= psdit
+REFER= refer
+PROCESS= $(REFER) -e -n $*.ms | $(TBL) | $(TROFF) $(MS)
-tut: tut.dit
- $(PREVIEW) tut.dit
+tut: tut.dvi
+ $(TEXPREVIEW) tut
-mod: mod.dit
- $(PREVIEW) mod.dit
+tut.dvi: tut.tex tut.toc
-paper: paper.dit
- $(PREVIEW) paper.dit
+mod: mod.dvi
+ $(TEXPREVIEW) mod
-ref: ref.dit
- $(PREVIEW) ref.dit
+mod.dvi: mod.tex mod.toc
-ALL= tut.dit mod.dit paper.dit ref.dit
+ALL= tut.ps mod.ps
all: $(ALL)
-$(ALL): macros.ms
+print: $(ALL)
+ $(PRINT) $(ALL)
+
+$(ALL): mystyle.sty
clean:
- rm -f *.dit *.ps core @* ,*
+ rm -f *.dit *.ps core @* ,*
.SUFFIXES: # Remove default suffixes
-.SUFFIXES: .ms .dit .ps
+.SUFFIXES: .ms .dit .tex .aux .toc .dvi .ps
+
+.tex.aux:
+ $(LATEX) $*
+
+.tex.toc:
+ $(LATEX) $*
+
+.tex.dvi:
+ $(LATEX) $*
+
+.dvi.ps:
+ $(DVIPS) $* >$*.ps
+
+.tex.ps:
+ $(LATEX) $*
+ $(DVIPS) $* >$*.ps
.ms.dit:
- $(TBL) $*.ms | $(TROFF) $(MS) >$@
+ $(PROCESS) >$@
.dit.ps:
$(PSDIT) <$*.dit >$@
.ms.ps:
- $(TBL) $*.ms | $(TROFF) $(MS) | $(PSDIT) >$@
+ $(PROCESS) | $(PSDIT) >$@