#!/usr/bin/make
-all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
+all: $(patsubst %.Rtex,%.pdf,$(wildcard *.Rtex))
-# use the following section for Rnw/knitr documents
-# all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
-%.tex: %.Rnw
+%.tex: %.Rtex
Rscript -e "library(knitr); knit('$<')"
%.pdf: %.tex
rm -f *.tmp *.run.xml
rm -f vc
rm -f *.bbl
- # the following lines are useful for Rnw/knitr
+ # the following lines are useful for Rtex/knitr
rm -rf cache/ figure/
rm -f *.tex