forked from Rdatatable/data.table
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
47 lines (37 loc) · 776 Bytes
/
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
R ?= R
.PHONY: all
all:
$(MAKE) clean
$(MAKE) build
$(MAKE) install
$(MAKE) test
$(MAKE) check
.PHONY: some
some:
$(MAKE) clean
$(MAKE) build
$(MAKE) install
$(MAKE) test
.PHONY: clean
clean:
$(RM) data.table_1.14.3.tar.gz
$(RM) src/*.o
$(RM) src/*.so
.PHONY: build
build:
$(R) CMD build . --no-build-vignettes
.PHONY: install
install:
$(R) CMD INSTALL data.table_1.14.3.tar.gz
.PHONY: uninstall
uninstall:
$(R) CMD REMOVE data.table || true
.PHONY: test
test:
$(R) -e 'require(data.table); test.data.table()'
.PHONY: check
check:
_R_CHECK_CRAN_INCOMING_REMOTE_=false $(R) CMD check data.table_1.14.3.tar.gz --as-cran --ignore-vignettes --no-stop-on-test-error
.PHONY: revision
revision:
echo "Revision: $(shell git rev-parse HEAD)" >> DESCRIPTION