prevent double call of _cleanup, which harms usefiles (and is a bad idea in general)
[PyX.git] / www / png / Makefile
blob044bfdfc3973d0aa957d3bae047563074d2b6073
1 PYTHON ?= python3
2 GS ?= gs
4 pngfiles = example.png bend.png pyxlogo.png
6 default: $(pngfiles)
8 clean:
9 -rm $(pngfiles)
11 %.png: %.py
12 export PYTHONPATH=$(CURDIR)/../.. ; cd $(dir $^) ; $(PYTHON) $(notdir $^)
13 $(GS) -r100 -dEPSCrop -dNOPAUSE -dQUIET -dBATCH -sDEVICE=pngalpha -dTextAlphaBits=4 -dGraphicsAlphaBits=4 -sOutputFile=$@ $*.eps
14 rm $*.eps