# Makefile for texmf/doc/metapost. Public domain. MP = mp #DVIPS = dvips -Pold DVIPS = dvips -Pold -D300 TROFF = troff -Tpost -ms -mpictures | dpost GROFF = groff -Tps -mgs ### troff and/or groff example grdemo.ps: grdemo.ms figs.1 cat grdemo.ms | $(GROFF) > grdemo.ps demo.ps: demo.ms figs.1 /usr/lib/tmac/tmac.pictures cat demo.ms | $(TROFF) > demo.ps figs.1: figs.mp test -d /usr/lib/font/devpost || $(MAKE) /usr/lib/font/devpost test -d /usr/lib/font/devpost && $(MP) -T figs.mp /usr/lib/tmac/tmac.pictures: @echo @echo "WARNING: You don't seem to have the troff \`mpictures' macros" @echo "which are needed to typeset the \`demo.ps' example document." @echo "If your troff implementation doesn't provide these macros" @echo "you're out of luck, I'm afraid. Sorry, I can't help you!" @echo @echo "Perhaps you may want to try \`grdemo.ps' as an alternative" @echo "if you have GNU groff installed on your system?" @echo @false /usr/lib/font/devpost: @echo @echo "WARNING: You don't seem to have a suitable troff implementation" @echo "on your system that matches the assumptions built into the" @echo "MetaPost support programs. To run MetaPost in troff mode" @echo "you'll probably need a troff implementation from Bell Labs." @echo "Using GNU groff as an alternative won't work, I'm afraid." @echo @false ### pattern rules .dvi.ps: $(DVIPS) $< -o $@ ### cleanup targets clean: rm -f $(MPMAN_FIGS) $(MPGRAPH_FIGS) $(EXAMPLE_FIGS) rm -f *.mpx *.log *.aux mpxerr* distclean: clean rm -f mpman.ps mpgraph.ps mpintro.ps .PHONY: clean .SUFFIXES: .dvi .ps