Debian Codegraph @

texmf-dist/doc/metapost/base/source-manual/Makefile

raw
1 # Makefile for MetaPost documentation. Public domain.
2 # Rules for the groff/troff docs are in TeX Live,
3 # texmf-dist/doc/metapost/base/Makefile.
4
5 RM = -rm -f
6 latex = latex
7 pdflatex = pdflatex
8 # texexec is no longer in TL, with the advent of lmtx;
9 # context --luatex should run now ConTeXt MkIV
10 contextpdf = context --luatex
11 #contextdvi = texexec --dvi
12 dvips = dvips
13 bibtex = bibtex
14 mpost = mpost -tex=tex
15 mkindex = makeindex -c -s mpman.ist
16
17 all: pdf
18 pdf: mpman.pdf mpgraph.pdf mpboxes.pdf #mplibapi.pdf
19
20 mplibapi.pdf: mplibapi.tex
21 mv -f mpgraph.mp mpgraph.saved
22 $(contextpdf) mplibapi
23 mv -f mpgraph.saved mpgraph.mp
24
25 mpboxes.pdf: mpboxes.tex mpboxes.bib mpboxes.mp
26 $(mpost) mpboxes
27 $(pdflatex) mpboxes
28 $(bibtex) mpboxes
29 $(pdflatex) mpboxes
30 $(mkindex) mpboxes
31 $(pdflatex) mpboxes
32
33 mpgraph.pdf: mpgraph.tex mpgraph.bib mpgraph.mp
34 $(mpost) mpgraph
35 $(pdflatex) mpgraph
36 $(bibtex) mpgraph
37 $(pdflatex) mpgraph
38 $(pdflatex) mpgraph
39
40 mpman.pdf: mpman.tex mpman-app-legacy.tex mpman-app-optab.tex mpman-app-refman.tex mpman-app-numbersystems.tex mpman.bib mpman.ist mpman.mp charts.mp mpman-charts.mp
41 $(mpost) mpman
42 $(mpost) mpman-charts
43 $(pdflatex) mpman
44 $(bibtex) mpman
45 $(pdflatex) mpman
46 $(pdflatex) mpman
47 $(mkindex) mpman
48 $(pdflatex) mpman
49
50
51 # Install the pdf files into a TL runtime (separate repository).
52 install_files = grdemo-doc.pdf grdemo.pdf
53 install_files += mpboxes.pdf mpgraph.pdf
54 install_files += mpman.pdf
55 #
56 # Clearly not a suitable destination directory for anyone else :). --karl.
57 tldocdir = /home/texlive/karl/Master/texmf-dist/doc/metapost/base
58 #
59 # The sources go into a subdirectory.
60 install_sm_files = Makefile README TODO
61 install_sm_files += *.d *.sty *.map *.mp *.ms *.bib *.tex *.ist
62 install_sm_files += figs.1 grdemo.eps grdemo-doc.ps
63 tldocdir_sm = $(tldocdir)/source-manual
64 #
65 INSTALL_DATA = cp -pfv
66 #
67 install-tl:
68 # $(INSTALL_DATA) $(install_files) $(tldocdir)/
69 $(INSTALL_DATA) $(install_sm_files) $(tldocdir_sm)/
70
71 clean:
72 $(RM) *.aux *.bbl *.blg *.dvi *.idx *.ilg *.ind *.log *.mps *.mpx *.out *.toc mpxerr.*
73 $(RM) *.tui *.tuo *.tmp *-mpgraph.mp
74
75 distclean: clean
76 $(RM) mp?*.pdf mp?*.ps