# MACRO DEFINITIONS
RM=rm -f

# TARGET DEFINITIONS
all: rnw index.html

rnw: *.Rnw
	R --vanilla -e "R.rsp::buildNonSweaveVignettes()"

index.html:
	R --vanilla -e "R.rsp::buildPkgIndexHtml()"

clean:
	$(RM) index.html.rsp
	$(RM) *.aux *.bbl *.blg *.bst *.log *.out *.sty *.toc *.tex *.rsp.R
	$(RM) -r figures/
	$(RM) Makefile

#########################################################################
# HISTORY:
# 2012-03-20
# o Now removing more files in the cleanup.
# 2012-01-21
# o Now removing more files in the cleanup.
# 2011-11-23
# o Now utilizing new buildNowSweaveVignettes().
# 2011-11-22
# o Now this Makefile is completely generic and no longer needs
#   to be modified.
# o Now this Makefile compiles all *.rsp files it finds.
# o Now the index.html.rsp template is copied from the R.rsp package.
# o No longer deleting the dummy *.Rnw files, because they are needed
#   in order for R to believe there are (Sweave) vignettes.  This trick
#   makes the PDFs to show up with browseVignettes() and on CRAN.
# 2011-04-13
# o Now using new rsp() throughout.
# 2011-04-04
# o Added macro definitions.
#########################################################################
