summaryrefslogtreecommitdiff
path: root/systems/doc/metapost/source-manual/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'systems/doc/metapost/source-manual/Makefile')
-rw-r--r--systems/doc/metapost/source-manual/Makefile28
1 files changed, 25 insertions, 3 deletions
diff --git a/systems/doc/metapost/source-manual/Makefile b/systems/doc/metapost/source-manual/Makefile
index e3e170652b..8969a473a7 100644
--- a/systems/doc/metapost/source-manual/Makefile
+++ b/systems/doc/metapost/source-manual/Makefile
@@ -5,15 +5,16 @@
RM = -rm -f
latex = latex
pdflatex = pdflatex
-contextpdf = texexec
-contextdvi = texexec --dvi
+# texexec is no longer in TL, with the advent of lmtx.
+#contextpdf = texexec
+#contextdvi = texexec --dvi
dvips = dvips
bibtex = bibtex
mpost = mpost -tex=tex
mkindex = makeindex -c -s mpman.ist
all: pdf
-pdf: mpman.pdf mpgraph.pdf mpboxes.pdf mplibapi.pdf
+pdf: mpman.pdf mpgraph.pdf mpboxes.pdf #mplibapi.pdf
ps: mpman.ps mpgraph.ps mpboxes.ps mplibapi.ps
mplibapi.pdf: mplibapi.tex
@@ -81,6 +82,27 @@ mpman.ps: mpman.tex mpman-app-legacy.tex mpman-app-optab.tex mpman-app-refman.te
$(latex) mpman
$(dvips) mpman
+# Install the pdf files into a TL runtime (separate repository).
+install_files = grdemo-doc.pdf grdemo.pdf
+install_files += mpboxes.pdf mpgraph.pdf
+install_files += mpman.pdf
+# 2023: leaving out mplibapi.pdf since I don't know how to build it.
+#
+# Clearly not a suitable destination directory for anyone else :). --karl.
+tldocdir = /home/texlive/karl/Master/texmf-dist/doc/metapost/base
+#
+# The sources go into a subdirectory.
+install_sm_files = Makefile README TODO
+install_sm_files += *.d *.sty *.map *.mp *.ms *.bib *.tex *.ist
+install_sm_files += figs.1 grdemo.eps grdemo-doc.ps
+tldocdir_sm = $(tldocdir)/source-manual
+#
+INSTALL_DATA = cp -pfv
+#
+install-tl:
+# $(INSTALL_DATA) $(install_files) $(tldocdir)/
+ $(INSTALL_DATA) $(install_sm_files) $(tldocdir_sm)/
+
clean:
$(RM) *.aux *.bbl *.blg *.dvi *.idx *.ilg *.ind *.log *.mps *.mpx *.out *.toc mpxerr.*
$(RM) *.tui *.tuo *.tmp *-mpgraph.mp