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