-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
72 lines (53 loc) · 1.16 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
SHELL := /bin/bash
#LIBDIR=${HOME}/Rlibs/lib
PACKAGE=mrggsave
VERSION=$(shell grep Version DESCRIPTION |awk '{print $$2}')
TARBALL=${PACKAGE}_${VERSION}.tar.gz
PKGDIR=.
CHKDIR=.
TESTDIR=../../qualification/mrggsave_qualification/testing/
covr:
Rscript inst/script/covr.R
spelling:
Rscript -e 'spelling::spell_check_package(".")'
pkgdown:
Rscript -e "pkgdown::build_site()"
testing:
cp ${TARBALL} ${TESTDIR}
release:
make all
cp ${TARBALL} ~/ghe/software-qualification/mrggsave_qualification/testing/
cran:
make doc
make build
R CMD CHECK --as-cran ${TARBALL} -o ${CHKDIR}
travis_build:
make doc
make build
make install
readme:
Rscript -e 'rmarkdown::render("README.Rmd")'
all:
make doc
make build
make install
.PHONY: doc
doc:
Rscript -e 'devtools::document(".")'
build:
R CMD build --md5 $(PKGDIR)
install:
R CMD INSTALL --install-tests ${TARBALL} -l ~/Rlibs
install-build:
R CMD INSTALL --build --install-tests ${TARBALL}
check:
make doc
make build
R CMD check ${TARBALL} -o ${CHKDIR}
test:
Rscript -e 'testthat::test_dir("tests")'
bump-dev:
Rscript -e 'usethis::use_version("dev")'
tag-version:
git tag $(VERSION)
git push origin $(VERSION)