]> code.communitydata.science - rises_declines_wikia_code.git/blob - paper_source/Makefile
add copy of the GPL
[rises_declines_wikia_code.git] / paper_source / Makefile
1 #!/usr/bin/make
2 all: $(patsubst %.Rtex,%.pdf,$(wildcard *.Rtex)) 
3 pdf: all
4
5 %.tex: %.Rtex
6         Rscript -e "library(knitr); knit('$<')"
7
8 %.pdf: %.tex
9         latexmk -f -pdf -quiet $<
10
11 clean: 
12         latexmk -f -pdf -quiet -c *.tex
13         rm -rf figure/
14         rm -f *.tex
15         rm -f *.tmp
16         rm -f vc
17         rm -f *.bbl
18         rm -f generalizable_wiki.pdf
19
20
21 viewpdf: all
22         evince *.pdf
23
24 spell:
25         aspell -c -t --tex-check-comments -b text.tex
26
27 .PHONY: clean all
28 .PRECIOUS: %.tex

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