add a note about missing documentation
[PyX.git] / examples / Makefile
blob0914b95b3d4258edd04afc2062bf1778f248be76
1 PYTHON ?= python
2 GS ?= gs
4 files = $(foreach item, $(shell grep -v / INDEX), $(item)) $(foreach item, $(shell grep / INDEX), $(addprefix $(item), $(shell cat $(item)INDEX)))
5 pyfiles = $(addsuffix .py, $(files))
6 epsfiles = $(addsuffix .eps, $(files))
7 pngfiles = $(addsuffix .png, $(files))
8 thumbpngfiles = $(addsuffix _thumb.png, $(files))
10 png: $(pngfiles) $(thumbpngfiles)
12 eps: $(epsfiles)
14 clean:
15 -rm -f *.eps */*.eps *.pdf */*.pdf *.png */*.png
17 all:
18 make clean
19 make png
21 %.eps: %.py
22 cd $(dir $^); PYTHONPATH=$(CURDIR)/.. $(PYTHON) $(notdir $^)
24 misc/pattern.png: misc/pattern.eps
25 $(GS) -r400 -dEPSCrop -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pnm -sOutputFile=- $^|pnmscale 0.25|pnmtopng -transparent 'rgb:ff/ff/ff' > $@
27 misc/pattern_thumb.png: misc/pattern.eps
28 $(GS) -r200 -dEPSCrop -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pnm -sOutputFile=- $^|pnmscale 0.25|pnmtopng -transparent 'rgb:ff/ff/ff' > $@
30 %.png: %.eps
31 $(GS) -r100 -dEPSCrop -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ $^
33 %_thumb.png: %.eps
34 $(GS) -r50 -dEPSCrop -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ $^