summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/metapost/base/source/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/metapost/base/source/Makefile')
-rw-r--r--Master/texmf-dist/doc/metapost/base/source/Makefile43
1 files changed, 38 insertions, 5 deletions
diff --git a/Master/texmf-dist/doc/metapost/base/source/Makefile b/Master/texmf-dist/doc/metapost/base/source/Makefile
index 39c8e9ad6d5..6574ec99108 100644
--- a/Master/texmf-dist/doc/metapost/base/source/Makefile
+++ b/Master/texmf-dist/doc/metapost/base/source/Makefile
@@ -1,13 +1,16 @@
-# $Id: Makefile,v 1.4 2005/03/21 15:25:51 taco Exp $
# 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 = TEX=tex mpost
+mpost = mpost -tex=tex
-all: mpman.pdf mpintro.pdf mpgraph.pdf grdemo.pdf
+pdf: mpman.pdf mpintro.pdf mpgraph.pdf grdemo.pdf
+ps: mpman.ps mpintro.ps mpgraph.ps
+all: pdf
mpgraph.pdf: mpgraph.tex mpgraph.bib mpgraph.mp
$(mpost) mpgraph
@@ -33,6 +36,36 @@ mpman.pdf: mpman.tex mpman.bib mpman.ist manfig.mp
makeindex -s mpman.ist mpman
$(pdflatex) mpman
-clean distclean:
+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.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
+ rm -f *.idx *.ilg *.ind *.toc *.out
+
+distclean: clean
+ rm -f mp*.pdf mp*.ps