forked from kbaseattic/matR
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
49 lines (37 loc) · 1.05 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
TARGET ?= /kb/deployment
DEPLOY_RUNTIME ?= /kb/runtime
SERVICE = matR
SERVICE_DIR = $(TARGET)/services/$(SERVICE)
DOC_DIR = $(SERVICE_DIR)/webroot
R_LIB = $(TARGET)/lib/
TPAGE := $(shell which tpage)
default:
echo "everything look good?"
build-libs:
git submodule init
git submodule update
cd matR; git checkout -B maint
$(TPAGE) --define rlib=$(R_LIB) install-matr.R.tt > install-matr.R
R CMD BATCH install-matr.R
deploy: deploy-client deploy-server
deploy-libs: build-libs
deploy-client: deploy-libs deploy-scripts deploy-docs
cp matR/README readme.txt
deploy-scripts:
echo "No scripts to install"
deploy-server:
echo "No server to install"
deploy-docs:
-mkdir $(SERVICE_DIR)
-rm $(DOC_DIR)/README.md
-rm $(DOC_DIR)/DESCRIPTION.md
-mkdir $(DOC_DIR)
cp matR/README $(DOC_DIR)/README.md
cp matR/DESCRIPTION $(DOC_DIR)/DESCRIPTION.md
test: test-server test-scripts test-client
test-client:
echo "No automatic client tests yet, manually run 'demo'. See readme.txt."
test-scripts:
echo "No scripts to test"
test-server:
echo "No server to test"