remove mathtree doc
[PyX/mjg.git] / examples / Makefile
blob2e91ef06cfb3591afa7af99c210a09ad5dc25b27
1 default: examples.dvi
3 clean:
4 -rm -f examples.tex examples.log examples.aux examples.dvi *.eps */*.eps *.pdf */*.pdf *.png */*.png
6 all:
7 make clean
8 make examples.dvi
9 make png
11 dvi: examples.dvi
13 files = $(foreach item, $(shell grep -v / INDEX), $(item)) $(foreach item, $(shell grep / INDEX), $(addprefix $(item), $(shell cat $(item)INDEX)))
14 pyfiles = $(addsuffix .py, $(files))
15 epsfiles = $(addsuffix .eps, $(files))
16 pngfiles = $(addsuffix .png, $(files))
18 eps: $(epsfiles)
20 examples.dvi: examples.py $(epsfiles)
21 python examples.py $(basename $(pyfiles))
22 latex examples.tex
24 png: $(pngfiles)
26 %.eps: %.py
27 cd $(dir $^); PYTHONPATH=$(CURDIR)/.. python $(notdir $^)
29 %.png: %.eps
30 python ../contrib/epstopng.py -o $@ $^