-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
43 lines (29 loc) · 865 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#!/usr/bin/make
all: $(patsubst %.Rtex,%.pdf,$(wildcard *.Rtex))
ecological_models.bib:
wget -r -q -O ecological_models.bib http://127.0.0.1:23119/better-bibtex/export/collection?/2/F6ZJH5MK.bibtex
sync: sync.remember
sync.remember:
cd ..; ./sync_remember.sh; cd overleaf;
# source ~/partitioning_reddis/bin/activate before running
network_plots:
Rscript resources/prep_network_data.R && \
python3 visualize_network.py
%.tex: %.Rtex ecological_models.bib resources/* figures/* network_plots
Rscript -e "library(knitr); knit('$<')"
%.pdf: %.tex
latexmk -f -pdf $<
clean:
latexmk -C *.tex
rm -f *.bbl
rm -f *.run.xml
rm abstract.pdf
clean_cache:
rm -f figures/knitr-*
viewpdf: all
evince *.pdf
spell:
aspell -c -t --tex-check-comments -b text.tex
pdf: all
.PHONY: clean clean_cache all ecological_models.bib sync.remember
.PRECIOUS: %.tex