chiark / gitweb /
graph.mp: Pack important magic into definitions.
[dnd] / Makefile
1 DOCS = \
2         contents \
3         rules \
4         abilities combat encounters equip forts misc monsters movement \
5         mystic orders planes rules saves spells thief treasure \
6         undead wandering warmachine weapons
7
8 LATEX = latex
9 METAPOST = mpost
10 DVIPS = dvips
11
12 all: \
13         $(patsubst %,%.ps,$(DOCS)) \
14         graph.1
15
16 %.1: %.mp
17         $(METAPOST) $^
18
19 %.dvi: %.tex dnd.sty tables.cls
20         $(LATEX) $^
21         $(LATEX) $^
22
23 %.ps: %.dvi
24         $(DVIPS) -o $@ $^
25
26 clean:
27         rm -f *.dvi *.ps *.log *.aux *.[1-9]