3 all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
 
   5 # use the following section for Rnw/knitr documents
 
   6 # all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
 
   8 #       Rscript -e "library(knitr); knit('$<')"
 
  18         # the following lines are useful for Rnw/knitr
 
  19         # rm -rf cache/ figure/