clean:
	/bin/rm -R *.pdf *.snm *.toc *.nav *.log *.aux *.dvi *.eps *.out *.ps

all:   	OSIRISjml
OSIRISjml:
	echo 'Sweave("OSIRISjml.Rnw")' | R --vanilla --quiet
	pdflatex   OSIRISjml.tex
	bibtex     OSIRISjml
	pdflatex   OSIRISjml.tex
	pdflatex   OSIRISjml.tex

OREXscat:
	echo 'Sweave("OREXscat.Rnw")' | R --vanilla --quiet
	pdflatex   OREXscat.tex
	bibtex     OREXscat
	pdflatex   OREXscat.tex
	pdflatex   OREXscat.tex

OREXscat_Kimrev_v1:
	echo 'Sweave("OREXscat_Kimrev_v1.Rnw")' | R --vanilla --quiet
	pdflatex   OREXscat_Kimrev_v1.tex
	bibtex     OREXscat_Kimrev_v1
	pdflatex   OREXscat_Kimrev_v1.tex
	pdflatex   OREXscat_Kimrev_v1.tex
	echo 'open OREXscat_Kimrev_v1.pdf'

