]> code.communitydata.science - social-media-chapter.git/blob - paper/Makefile
ignore rendered HTML
[social-media-chapter.git] / paper / Makefile
1 #!/usr/bin/make
2
3 all: $(patsubst %.Rnw,%.pdf,$(wildcard *.Rnw)) 
4 pdf: all
5
6 %.tex: %.Rnw
7         #python3 ../code/LDA/make_latex_files.py
8         Rscript -e "library(knitr); knit('$<')"
9
10 %.pdf: %.tex vc
11         grep -v -e '^.usepackage.longtable.$$' $<| sponge $<
12         latexmk -f -pdf $<
13
14 clean: 
15         latexmk -C *.tex
16         rm -f *.tmp
17         rm -f *.tex
18         rm -rf figure/
19         rm -f *.bbl
20         rm -rf cache/
21         rm -rf *.run.xml
22         rm -f vc
23
24 viewpdf: all
25         evince *.pdf
26
27 spell:
28         aspell -c -t --tex-check-comments -b text.tex
29
30 vc:
31         resources/vc-git
32
33 .PHONY: clean all
34 .PRECIOUS: %.tex

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