]> code.communitydata.science - cdsc_tex.git/blob - paper_template/Makefile
updated links to git repository
[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:
26         resources/vc-git
27
28 pdf: all
29
30 .PHONY: clean all
31 # .PRECIOUS: %.tex

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