-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
36 lines (26 loc) · 954 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
RSCRIPT = Rscript --no-init-file
test:
VAULT_BIN_PATH=${PWD}/.vault VAULTR_TEST_SERVER_PORT=18200 ${RSCRIPT} -e 'library(methods); devtools::test()'
roxygen:
@mkdir -p man
${RSCRIPT} -e "library(methods); devtools::document()"
install:
R CMD INSTALL .
build:
R CMD build .
check:
_R_CHECK_CRAN_INCOMING_=FALSE make check_all
check_all:
${RSCRIPT} -e "rcmdcheck::rcmdcheck(args = c('--as-cran', '--no-manual'))"
## This will eventually swap out for devtools::build_vignettes(), but
## in current version it's not working when offline. For now I'll
## just do the copy manually.
vignettes: vignettes/orderly.Rmd
${RSCRIPT} -e 'tools::buildVignettes(dir = ".")'
mkdir -p inst/doc
cp vignettes/*.html vignettes/*.Rmd inst/doc
tests/testthat/montagu-reports:
git clone [email protected]:vimc/montagu-reports $@
README.md: README.md.in vignettes/orderly.Rmd
scripts/build_readme
.PHONY: test roxygen install build check check_all vignettes