.gitignore: Also ignore Metapost output.
[dnd] / Makefile
index 355cf45..e2020c7 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,13 +1,17 @@
 DOCS = \
+       contents \
        rules \
-       abilities combat encounters equip misc monsters movement \
+       abilities combat encounters equip forts misc monsters movement \
        mystic orders planes rules saves spells thief treasure \
        undead wandering warmachine weapons
 
 LATEX = latex
 METAPOST = mpost
+DVIPS = dvips
 
-all: $(patsubst %,%.dvi,$(DOCS)) graph.1
+all: \
+       $(patsubst %,%.ps,$(DOCS)) \
+       graph.1
 
 %.1: %.mp
        $(METAPOST) $^
@@ -16,5 +20,8 @@ all: $(patsubst %,%.dvi,$(DOCS)) graph.1
        $(LATEX) $^
        $(LATEX) $^
 
+%.ps: %.dvi
+       $(DVIPS) -o $@ $^
+
 clean:
        rm -f *.dvi *.ps *.log *.aux *.[1-9]