forked from lgatto/R-programming
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
44 lines (39 loc) · 690 Bytes
/
Makefile
File metadata and controls
44 lines (39 loc) · 690 Bytes
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
LATEXFILES = *.aux\
*.bbl\
*.blg\
*.ilg\
*.log\
*.nlo\
*.nls\
*.toc\
*.aux\
R-programming.out\
Rplots.pdf\
*.dvi\
*.map\
*.figlist\
*.dep\
*.dpth\
*.makefile\
R-programming.tex
all:
make vig
make r
setvars:
ifeq (${R_HOME},)
R_HOME= $(shell R RHOME)
endif
vig: R-programming.Rnw
"$(R_HOME)/bin/R" --vanilla -e "library(knitr); knit2pdf('R-programming.Rnw');"
## bibtex R-programming
## "$(R_HOME)/bin/R" CMD pdflatex R-programming.tex
"$(R_HOME)/bin/R" CMD pdflatex R-programming.tex
r:
"$(R_HOME)/bin/R" --vanilla -e "knitr::purl('R-programming.Rnw')"
.PHONY: clean allclean
clean:
rm -f $(LATEXFILES)
rm -f .Rhistory
rm -rf figure
rm -f *~
rm -f */*~