# try the various output formats for the cylinder drawing

.PHONY : clean

pdf:
	rm -f cylpdf.asy
	sed 's/TYPE/pdf/' cylinder.in >cylpdf.asy
	asy cylpdf

png:
	rm -f cylpng.asy
	sed 's/TYPE/png/' cylinder.in >cylpng.asy
	asy cylpng

svg:
	rm -f cylsvg.asy
	sed 's/TYPE/svg/' cylinder.in >cylsvg.asy
	asy cylsvg

html:
	rm -f cylhtml.asy
	sed 's/TYPE/html/' cylinder.in >cylhtml.asy
	asy -offline cylhtml

latex:
	rm -f cyllatex-*
	pdflatex cyllatex.tex
	asy cyllatex-*.asy
	pdflatex cyllatex.tex

clean:
	rm -f cylpdf* cylpng* cylsvg* cylhtml* \
	rm -f cyllatex-* *.aux *.log *.pre *.pdf

	

