R = $(R_HOME)/bin/R

# rules
%.R: %.Rnw
	@echo "Stangle $<"; $(R) CMD Stangle $<

%.tex: %.Rnw
	@echo "Sweave $<"; $(R) CMD Sweave $<

%.pdf: %.tex
	@echo "making $@"; $(R) CMD texi2dvi --pdf --clean $<

Bioconductor-tutorial.pdf: \
	RBioc.tex DataExploration.tex RangesAndStrings.tex RNASeq.tex \
	Annotation.tex Appendix.tex

all: Bioconductor-tutorial.pdf
