EPS = addloop.eps ghsigma.eps loopatendpoints.eps phonewire.eps

pdf: sasha.pdf Makefile

ps: sasha.ps dvi Makefile

dvi: sasha.dvi Makefile

tgz: sasha.tgz Makefile

all: ps pdf png Makefile

png: sasha.ps Makefile
	pstoimg -antialias -aaliastext -multipage -type PNG sasha.ps
clean: Makefile
	rm -f *~ *.eps sasha.ps *.dvi *.pdf *.log *.png *.aux *.bak *.tmp
sasha.tgz: sasha.tex $(EPS) Makefile
	rm -rf sasha; mkdir sasha; cp sasha.tex $(EPS) sasha; tar czf sasha.tgz sasha; rm -rf sasha
$(EPS): %.eps: %.fig
	fig2dev -L eps $< $@
sasha.pdf: sasha.ps Makefile
	ps2pdf sasha.ps sasha.pdf
sasha.ps: sasha.dvi $(EPS) Makefile
	dvips sasha.dvi -Ppdf -o sasha.ps
sasha.dvi: sasha.tex $(EPS) Makefile
	latex sasha && latex sasha && latex sasha
