]> code.communitydata.science - cdsc_tex.git/blob - assignment_template/Makefile
Merge branch 'master' into knitr
[cdsc_tex.git] / assignment_template / Makefile
1 #!/usr/bin/make
2
3 all: $(patsubst %.tex,%.pdf,$(wildcard *.tex)) 
4
5 # use the following section for Rnw/knitr documents
6 # all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw))
7 # %.tex: %.Rnw
8 #       Rscript -e "library(knitr); knit('$<')"
9
10 %.pdf: %.tex 
11         latexmk -f -pdf $<
12
13 clean: 
14         latexmk -C *.tex
15         rm -f *.tmp *.run.xml
16         rm -f vc
17         rm -f *.bbl
18         # the following lines are useful for Rnw/knitr
19         # rm -rf cache/ figure/
20         # rm -f *.tex
21
22 viewpdf: all
23         evince *.pdf
24
25 pdf: all
26
27 .PHONY: clean all
28 # .PRECIOUS: %.tex

Community Data Science Collective || Want to submit a patch?