## $Id: Makefile 152 2008-01-29 15:18:27Z sluque $

##_+ Prepare the vignettes ------------------------------------------------
# We don't need to do anything with the Sweave files, as R CMD build
# weaves them before calling make
LATEX = pdflatex
BIBTEX = bibtex
TEXTRASH = *.*ps $*.dvi $*.bbl $*.aux $*.blg *.log $*.toc $*.out auto/

all : diveMove.pdf

%.pdf :	%.tex
	R CMD Rd2dvi --pdf -o 'diveMove-rd.pdf' --title='diveMove' ../../man/
	$(LATEX) $*
	$(BIBTEX) $*
	$(LATEX) $*
	$(LATEX) $*
	$(LATEX) $*
	rm -rf $(TEXTRASH) diveMove-*
