-
Notifications
You must be signed in to change notification settings - Fork 18
/
Makefile
executable file
·71 lines (45 loc) · 1.05 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
SHELL := /bin/bash
#CLEANING
#remove any intermediate files
clean:
rm -f README.md
rm rnassqs_*.tar.gz
rm -r rnassqs.Rcheck
clean_all: clean
#Project README
readme: README.Rmd
R -e "rmarkdown::render('$(<F)')"
#Project Paper
paper: paper.Rmd
R -e "rmarkdown::render('$(<F)')"
#R PACKAGE
codemeta:
R -e 'codemetar::write_codemeta()'
pkgdown: .FORCE
R -e 'pkgdown::build_site(override = list(template = list(package = "rotemplate")))'
spell_check:
R -e 'devtools::spell_check()'
doc:
R -e 'devtools::document()'
check:
R -e 'devtools::check()'
check_cmd:
R CMD build . && R CMD check $$(ls -t . | head -n1)
check_rhub:
R -e 'devtools::check_rhub()'
check_revdep:
R -e 'usethis::use_revdep()'
check_win:
R -e 'devtools::check_win_release()'
test:
R -e 'devtools::test()'
release:
R -e 'devtools::release()'
.FORCE:
docs: readme doc pkgdown codemeta
checks: spell_check check check_cmd check_rhub check_revdep
build:
R -e 'devtools::build()'
install: docs check_cmd
R -e 'devtools::install()'
all: clean_all docs test checks build install