# Makefile for template tests
#
#
#
#
all: test01.agr test02.agr test03.agr test04-1.agr test05.agr
pics: test01.jpg test02.jpg test03.jpg test04.jpg test05.jpg
GR = -hardcopy -hdevice PNG -fixed
GEOMETRY = -geometry 340x480
GEOMETRY = -geometry 424x600
GRGEOM = -geometry 848x1200
FRAME = 5
test01.agr: test01.py test01.tmpl
python test01.py
test02.agr: ../gracetmpldemo test02.tmpl transient.dat
../gracetmpldemo -t test02.tmpl transient.dat -o test02.agr
test03.agr: test03.py test03.tmpl
python test03.py
test04-1.agr: test04.py test04.tmpl
python test04.py
test04-2.agr: test04.py test04.tmpl
test04-3.agr: test04.py test04.tmpl
test04-4.agr: test04.py test04.tmpl
test05.agr: test05.py test05.tmpl transient.dat transient2.dat
python test05.py
%.tmpl.jpg: %.tmpl
gracebat $*.tmpl $(GR) $(GRGEOM) -printfile $*.tmpl.jpg
%.agr.jpg: %.agr
sed -e s/TEMPLATE/OUTPUT/ $*.agr | \
gracebat - $(GR) $(GRGEOM) -printfile $*.agr.jpg
%.jpg: %.tmpl.jpg %.agr.jpg Makefile
montage -quality 85 $(GEOMETRY) -frame $(FRAME) $*.tmpl.jpg $*.agr.jpg $*.jpg
test04.agr.jpg: test04-1.agr.jpg test04-2.agr.jpg test04-3.agr.jpg test04-4.agr.jpg
montage -quality 85 $(GRGEOM) -frame $(FRAME) -tile 2x2 test04-[1234].agr.jpg test04.agr.jpg
rm -f test04-1.agr.jpg test04-2.agr.jpg test04-3.agr.jpg test04-4.agr.jpg
clean:
rm -f *~ *.agr *.jpg
syntax highlighted by Code2HTML, v. 0.9.1