forked from lgatto/roo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
52 lines (41 loc) · 990 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
44
45
46
47
48
49
50
51
52
all:
make roo.pdf
LATEXFILES = *.aux\
*.aux\
*.map\
*.log\
*.nav\
*.out\
*.snm\
*.toc\
*.tex.backup\
*.dvi\
*.vrb\
*.bbl\
*.blg\
*~\
Rplots.pdf\
*tex
setvars:
ifeq (${R_HOME},)
R_HOME= $(shell R RHOME)
endif
roo.pdf: roo.Rnw intro.tex revision.tex oo-intro.tex roo.Rnw S3.tex S4.tex Ref.tex
"$(R_HOME)/bin/R" --vanilla -e "knitr::knit('roo.Rnw');"
pdflatex roo.tex
pdflatex roo.tex
intro.tex: intro.Rnw
"$(R_HOME)/bin/R" --vanilla -e "library(knitr); knit('intro.Rnw');"
revision.tex: revision.Rnw
"$(R_HOME)/bin/R" --vanilla -e "library(knitr); knit('revision.Rnw');"
oo-intro.tex: oo-intro.Rnw
"$(R_HOME)/bin/R" --vanilla -e "library(knitr); knit('oo-intro.Rnw');"
S3.tex: S3.Rnw
"$(R_HOME)/bin/R" --vanilla -e "library(knitr); knit('S3.Rnw');"
S4.tex: S4.Rnw
"$(R_HOME)/bin/R" --vanilla -e "library(knitr); knit('S4.Rnw');"
Ref.tex: Ref.Rnw
"$(R_HOME)/bin/R" --vanilla -e "library(knitr); knit('Ref.Rnw');"
clean:
rm -f $(LATEXFILES)
rm -rf figure