-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathMakefile
More file actions
68 lines (50 loc) · 1.4 KB
/
Makefile
File metadata and controls
68 lines (50 loc) · 1.4 KB
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
# load.R fixes a bug with devtool's `help` to enable `help` on
# functions in this package, as well as loading the package
LOAD=R_PROFILE=load.R
RCMD=R -q -e
.PHONY:interactive
interactive:
@$(LOAD) R -q --no-save
.PHONY:interactive-emacs
interactive-emacs:
@$(LOAD) emacs -nw -f R
.PHONY:.devtools
.devtools:
@$(RCMD) "devtools:::$(FUNC)($(DEVTOOLSARG))"
DEVTOOLSARG=
.PHONY:dependencies
dependencies: FUNC=install_deps
dependencies: DEVTOOLSARG=dependencies=TRUE
.PHONY:test
test: FUNC=test
.PHONY:check
check: FUNC=check
check: DEVTOOLSARG=incoming=TRUE
.PHONY:document
document: FUNC=document
.PHONY:coverage
coverage:
@$(RCMD) "covr::report(file = 'coverage.html', browse = TRUE)"
.PHONY:goodpractice
goodpractice:
@$(RCMD) "goodpractice::gp('.')"
.PHONY:build
build: FUNC=build
.PHONY:check_win_old
check_win_old: FUNC=check_win_oldrelease # Check & build on win-builder old release
.PHONY:check_win
check_win: FUNC=check_win_release # ... on win-builder release
.PHONY:check_win_dev
check_win_dev: FUNC=check_win_devel # ... on win-builder dev
.PHONY:check_rhub
check_rhub: FUNC=check_rhub
check_rhub: DEVTOOLSARG=interactive=FALSE
.PHONY:build_site
build_site: FUNC=build_site
dependencies test check document build check_win check_win_dev check_win_old check_rhub build_site: .devtools
.PHONY: clean
clean:
git clean -Xfd
.PHONY: dos2unix
dos2unix:
find . -type f -print0 | xargs -0 dos2unix