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

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