-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
50 lines (43 loc) · 1.51 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
## AUTOMATICALLY GENERATED FROM TEMPLATE (Mo Jul 8 20:50:58 CEST 2019). DO NOT EDIT IT MANUALLY!
################################################################################
##
## Makefile
## Author: Jitao David Zhang <[email protected]>
## F. Hoffmann-La Roche AG
## Description: Makefile for building distributions etc.
##
################################################################################
R:=R
roxygenise:
@echo '====== roxygenize ======'
@(${R} -q -e "library(devtools);load_all();document('.')")
@echo ' '
test:
@echo '====== test ======'
@(${R} -q -e "library(devtools);test('.')")
@echo
doVignettes:
@echo "====== vignettes ======"
@(${R} -q -e "library(devtools); devtools::build_vignettes()")
@echo ' '
build: roxygenise
@echo '====== Building Distribution ======'
@(${R} -q -e "library(devtools); devtools::build()")
@echo '====== Building finished ======'
@echo ' '
install: roxygenise
@echo '====== Installing Package ======'
@(${R} -q -e "library(devtools); devtools::install(reload=FALSE, quick=FALSE, build=TRUE, upgrade=FALSE)")
@echo '====== Installing finished ======'
@echo ' '
check: roxygenise
@echo '====== Checking Package ======'
@(${R} -q -e "library(devtools);check('.', check_dir=\"..\")")
@echo '====== Checking finished ======'
@echo ' '
clean:
@echo '====== Cleaning Package ======'
@(rm -f src/*.o src/*.so src/*.dll src/*.rds)
@(find . -type f -name "*~" -exec rm '{}' \;)
@(find . -type f -name ".Rhistory" -exec rm '{}' \;)
@echo ' '