-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
34 lines (23 loc) · 722 Bytes
/
Copy pathMakefile
File metadata and controls
34 lines (23 loc) · 722 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
PKGNAME=gslnls
PKGVERS=$(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
PWD=$(shell pwd)
all: check clean
.PHONY: docker
doc:
Rscript -e "roxygen2::roxygenize()"
globals:
Rscript -e "checkglobals::checkglobals()"
test:
Rscript -e "source(file.path('inst', 'unit_tests', 'unit_tests_checkglobals.R'), local = TRUE)"
build: doc
R CMD build .
install: build
R CMD INSTALL $(PKGNAME)_$(PKGVERS).tar.gz
check: build
R CMD check $(PKGNAME)_$(PKGVERS).tar.gz
rchk-run: build
docker run --rm -v $(PWD):/rchk/$(PKGNAME) kalibera/rchk:latest /rchk/$(PKGNAME)/$(PKGNAME)_$(PKGVERS).tar.gz
rdevel-test: build
docker build -f Dockerfile --tag $(PKGNAME):$(PKGVERS) $(PWD)
clean:
$(RM) -r $(PKGNAME).Rcheck/