-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (26 loc) · 735 Bytes
/
Makefile
File metadata and controls
38 lines (26 loc) · 735 Bytes
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
.PHONY: all build check document test
all: document build check
build: document
R CMD build .
check: build
R CMD check streamr*tar.gz
clean:
-rm -f streamr*tar.gz
-rm -fr streamr.Rcheck
-rm -rf src/*.o src/*.so
install:
R CMD INSTALL .
uninstall:
R --slave -e "remove.packages('streamr')"
document: install-devtools
R --slave -e "devtools::document()"
test: install-devtools
R --slave -e "devtools::test()"
lintr: install-lintr
R --slave -e "quit(status = length(print(lintr::lint_package())) != 0)"
install-devtools:
R --slave -e "if (!require('devtools')) install.packages('devtools')"
install-lintr:
R --slave -e "if (!require('lintr')) install.packages('lintr')"
clang-analyze: clean
scan-build make build