-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
35 lines (25 loc) · 771 Bytes
/
Makefile
File metadata and controls
35 lines (25 loc) · 771 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
.PHONY: all build check doc test
RFILE = README
VFILE = benchmarks
all: doc build check
build: doc
R CMD build .
clean:
-rm -f uaengine*tar.gz
-rm -fr uaengine.Rcheck
#-rm -fr src/*.{o,so}
doc: clean
Rscript -e 'devtools::document()'
Rscript -e 'rmarkdown::render("$(RFILE).Rmd",rmarkdown::md_document(variant="gfm"))'
Rscript -e "pkgdown::init_site()"
Rscript -e "pkgdown::build_article('$(VFILE)',quiet=FALSE)"
knith:
Rscript -e 'rmarkdown::render("$(RFILE).Rmd",output_file="$(RFILE).html")'
readme:
Rscript -e 'rmarkdown::render("$(RFILE).Rmd",rmarkdown::md_document(variant="gfm"))'
test:
Rscript -e 'devtools::test()'
check:
Rscript -e 'library(pkgcheck); checks <- pkgcheck(); print(checks); summary (checks)'
install: clean
R CMD INSTALL .