-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
59 lines (40 loc) · 1.18 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
BASEDIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
DOCROOT:=$(BASEDIR)/public
include config_default.txt
-include config.txt
# ------------------------------------------------------------------------------
# prepare for TSD
PHONY: prepare_offline
prepare_offline:
make reset
make download
make clean
cd ../ && zip -FSr $(basename $(notdir $(BASEDIR))).zip $(basename $(notdir $(BASEDIR)))
# ------------------------------------------------------------------------------
# run
.PHONY: run_webui
run_webui:
PORT=${WEBSERVERPORT} \
DOCROOT=${DOCROOT} \
BASEDIR=$(BASEDIR) \
DATADIR=${DATADIR} \
R_LIBS_USER=$(BASEDIR)/3rdparty/r_packages \
3rdparty/lighttpd/sbin/lighttpd -D -f lighttpd.conf
# ------------------------------------------------------------------------------
# clean
.PHONY: reset
reset:
$(MAKE) -C 3rdparty reset
.PHONY: clean
clean:
$(MAKE) -C 3rdparty clean
# ------------------------------------------------------------------------------
# build
.PHONY: build
build:
$(MAKE) -C 3rdparty build
# ------------------------------------------------------------------------------
# download
.PHONY: download
download:
$(MAKE) -C 3rdparty download