summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/base/source/Makefile
blob: db5531f9aa936c06875e87ecd9e59fade80d22b8 (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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
# Makefile for MetaPost documentation.  Public domain.
# Rules for the groff/troff docs are in TeX Live,
# texmf-dist/doc/metapost/base/Makefile.

latex = latex
pdflatex = pdflatex
dvips = dvips
bibtex = bibtex
mpost = mpost -tex=tex

all: pdf
pdf: mpman.pdf mpintro.pdf mpgraph.pdf mpboxes.pdf grdemo.pdf
ps: mpman.ps mpintro.ps mpgraph.ps mpboxes.ps

mpboxes.pdf: mpboxes.tex mpboxes.bib mpboxes.mp
	$(mpost) mpboxes
	$(pdflatex) mpboxes
	$(bibtex) mpboxes
	$(pdflatex) mpboxes
	makeindex -s mpman.ist mpboxes
	$(pdflatex) mpboxes

mpgraph.pdf: mpgraph.tex mpgraph.bib mpgraph.mp
	$(mpost) mpgraph
	$(pdflatex) mpgraph
	$(bibtex) mpgraph
	$(pdflatex) mpgraph
	$(pdflatex) mpgraph

mpintro.pdf: mpintro.tex mpintro.bib examples.mp manfig.mp
	$(mpost) examples
	$(mpost) manfig
	$(pdflatex) mpintro
	$(bibtex) mpintro
	$(pdflatex) mpintro
	$(pdflatex) mpintro

mpman.pdf: mpman.tex mpman-optab.tex mpman.bib mpman.ist manfig.mp
	$(mpost) manfig
	$(pdflatex) mpman
	$(bibtex) mpman
	$(pdflatex) mpman
	$(pdflatex) mpman
	makeindex -s mpman.ist mpman
	$(pdflatex) mpman

mpgraph.ps: mpgraph.tex mpgraph.bib mpgraph.mp
	$(mpost) mpgraph
	$(latex) mpgraph
	$(bibtex) mpgraph
	$(latex) mpgraph
	$(latex) mpgraph
	$(dvips) mpgraph

mpintro.ps: mpintro.tex mpintro.bib examples.mp manfig.mp
	$(mpost) examples
	$(mpost) manfig
	$(latex) mpintro
	$(bibtex) mpintro
	$(latex) mpintro
	$(latex) mpintro
	$(dvips) mpintro

mpman.ps: mpman.tex mpman-optab.tex mpman.bib mpman.ist manfig.mp
	$(mpost) manfig
	$(latex) mpman
	$(bibtex) mpman
	$(latex) mpman
	$(latex) mpman
	makeindex -s mpman.ist mpman
	$(latex) mpman
	$(dvips) mpman

clean:
	rm -f *.aux *.bbl *.blg *.dvi *.log *.mpx *.mps
	rm -f *.idx *.ilg *.ind *.toc *.out

distclean: clean
	rm -f mp*.pdf mp*.ps