blob: 0ee0685b746e70146d526a39a160d3c516770487 (
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
|
# 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
|