]> code.communitydata.science - cdsc_tex.git/blob - paper_template/Makefile
Merge branch 'master' of code.communitydata.cc:cdsc_tex
[cdsc_tex.git] / paper_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 vc:     resources/vc-git
26
27 pdf: all
28
29 .PHONY: clean all
30 # .PRECIOUS: %.tex

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