blob: e209e47bdccbcb4982ea950c9bc6b2735d3e78fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
|
# Makefile for Python documentation.
# Actually, it is easier to just do:
# latex tut
# latex tut
# latex lib
# latex lib
# latex ref
# latex ref
# (Doing everything twice so the table of contents comes out right!)
LATEX= latex
DVIPS= dvips
TEXPREVIEW= xdvi
PRINT= lpr
ALL= tut.ps lib.ps ref.ps
all: $(ALL)
tut: tut.dvi
$(TEXPREVIEW) tut
tut.dvi tut.ps: tut.toc tut.tex myformat.sty
lib: lib.dvi
$(TEXPREVIEW) lib
lib.dvi lib.ps: lib.toc lib.tex lib1.tex lib2.tex lib3.tex myformat.sty
ref: ref.dvi
$(TEXPREVIEW) ref
ref.dvi ref.ps: ref.toc ref.tex myformat.sty
print: $(ALL)
$(PRINT) $(ALL)
clean:
rm -f *.dvi *.aux *.toc *.log *.ps core [#@,]* *~
.SUFFIXES: # Remove default suffixes
.SUFFIXES: .tex .aux .toc .dvi .ps
.tex.aux:
$(LATEX) $*
.tex.toc:
$(LATEX) $*
.tex.dvi:
$(LATEX) $*
.dvi.ps:
$(DVIPS) $* >$*.ps
.tex.ps:
$(LATEX) $*
$(DVIPS) $* >$*.ps
|