-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
48 lines (34 loc) · 1.11 KB
/
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
PACKAGE := $(shell grep '^Package:' DESCRIPTION | sed -E 's/^Package:[[:space:]]+//')
RSCRIPT = Rscript --no-init-file
all: install
test:
${RSCRIPT} -e 'library(methods); devtools::test()'
test_all:
STORR_RUN_LONG_TESTS=true make 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: build
${RSCRIPT} -e "rcmdcheck::rcmdcheck(args = c('--as-cran', '--no-manual'))"
autodoc:
${RSCRIPT} autodoc.R process
vignettes/storr.Rmd: vignettes_src/storr.R
${RSCRIPT} -e 'library(sowsear); sowsear("$<", output="$@")'
vignettes/external.Rmd: vignettes_src/external.R
${RSCRIPT} -e 'library(sowsear); sowsear("$<", output="$@")'
vignettes: vignettes/storr.Rmd vignettes/external.Rmd
${RSCRIPT} -e 'library(methods); devtools::build_vignettes()'
pkgdown:
${RSCRIPT} -e "library(methods); pkgdown::build_site()"
website: pkgdown
./update_web.sh
tests/testthat/base64_reference.csv: scripts/build_base64_reference.R
$<
# No real targets!
.PHONY: all test document install vignettes