forked from gavinsimpson/gratia
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
93 lines (73 loc) · 1.9 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
# Get the version info for later
.PHONY: docs
PKGVERS := $(shell sed -n "s/Version: *\([^ ]*\)/\1/p" DESCRIPTION)
all: docs check clean
docs:
R -q -e 'library("roxygen2"); roxygenise(".")'
docs-devel:
R-devel -q -e 'library("roxygen2"); roxygenise(".")'
build: docs
cd ..;\
R CMD build --compression=gzip --resave-data gratia
build-openblas: docs
cd ..;\
R-openblas CMD build gratia
build-atlas: docs
cd ..;\
R-atlas CMD build gratia
build-devel: docs-devel
cd ..;\
R-devel CMD build gratia
check: build
cd ..; \
export NOT_CRAN="true"; \
echo "$${NOT_CRAN}"; \
R CMD check gratia_$(PKGVERS).tar.gz
check-openblas: build-openblas
cd ..; \
export NOT_CRAN="true"; \
echo "$${NOT_CRAN}"; \
R-openblas CMD check gratia_$(PKGVERS).tar.gz
check-atlas: build-atlas
cd ..; \
export NOT_CRAN="true"; \
echo "$${NOT_CRAN}"; \
R-atlas CMD check gratia_$(PKGVERS).tar.gz
check-test-cran: build
cd ..;\
export NOT_CRAN="false"; \
echo "$${NOT_CRAN}"; \
R CMD check gratia_$(PKGVERS).tar.gz
check-test-cran-openblas: build-openblas
cd ..;\
export NOT_CRAN="false"; \
echo "$${NOT_CRAN}"; \
R-openblas CMD check gratia_$(PKGVERS).tar.gz
check-test-cran-atlas: build-atlas
cd ..;\
export NOT_CRAN="false"; \
echo "$${NOT_CRAN}"; \
R-atlas CMD check gratia_$(PKGVERS).tar.gz
check-as-cran: build
cd ..;\
export NOT_CRAN="false"; \
echo "$${NOT_CRAN}"; \
R CMD check --as-cran gratia_$(PKGVERS).tar.gz
check-devel: build-devel
cd ..;\
R-devel CMD check gratia_$(PKGVERS).tar.gz
check-as-cran-devel: build-devel
cd ..;\
export NOT_CRAN="false"; \
echo "$${NOT_CRAN}"; \
R-devel CMD check gratia_$(PKGVERS).tar.gz
install: build
cd ..;\
R CMD INSTALL gratia_$(PKGVERS).tar.gz
move: ../gratia.Rcheck/gratia-Ex.Rout
cp ../gratia.Rcheck/gratia-Ex.Rout ./tests/Examples/gratia-Ex.Rout.save
clean:
cd ..;\
rm -r gratia.Rcheck/
pkgdown: docs
R -q -e 'library("pkgdown"); build_site(preview = FALSE)'