FILE=shoshi-paper

platex:
	platex ${FILE}.tex
	platex ${FILE}.tex

pdf: platex
	dvipdfmx ${FILE}.dvi
	open ${FILE}.pdf

repdf: platex
	pkill Preview
	dvipdfmx ${FILE}.dvi
	open ${FILE}.pdf
	
xdvi: platex
	xdvi ${FILE}.dvi

.PHONY:clean
clean:
	rm -f ${FILE}.log ${FILE}.aux ${FILE}.dvi

remove:
	rm -rf ${FILE}.log ${FILE}.aux ${FILE}.toc ${FILE}.dvi ${FILE}.dvi *.PNG *.eps *.bb *.png *.pdf *.graffle *.key *.dat img/*