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('$<')"
 
  11         perl -p -e 's/©//' refs.bib > refs-processed.bib
 
  12         perl -0pe 's/,\s+(file|abstract) = \{.*?\}(,\n|\n)/\2/sg' refs-processed.bib |sponge refs-processed.bib
 
  13         recode -d u8..ltex < refs-processed.bib | sponge refs-processed.bib
 
  15 %.pdf: %.tex refs-processed.bib
 
  22         rm -f refs-processed.bib
 
  23         # the following lines are useful for Rnw/knitr
 
  24         # rm -rf cache/ figure/