bldcmd=R CMD Sweave

s3x.pdf: s3x.tex maia2.sty
	pdflatex s3x.tex

s3x.tex: s3x.rnw
	$(bldcmd) s3x.rnw

