-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
58 lines (41 loc) · 1.26 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
BASEDIR:=$(shell dirname $(realpath $(firstword $(MAKEFILE_LIST))))
include config_default.txt
-include config.txt
websrcs := \
www/css/bootstrap.min.css \
www/css/bootstrap.min.css.map \
www/js/bootstrap.bundle.min.js \
www/js/bootstrap.bundle.min.js.map \
www/js/fontawesome.min.js \
www/js/jquery.min.js \
www/js/fuse-6.4.6.js \
www/js/popper.min.js
# ------------------------------------------------------------------------------
# build
PHONY: prepare_offline
prepare_offline:
make -C 3rdparty download
# ------------------------------------------------------------------------------
# run
.PHONY: run_webui
run_webui:
PORT=${WEBSERVERPORT} \
DOCROOT=$(BASEDIR)/www \
BASEDIR=$(BASEDIR) \
DATADIR=${DATADIR} \
R_LIBS_USER=$(BASEDIR)/3rdparty/r_packages \
3rdparty/lighttpd/sbin/lighttpd -D -f lighttpd.conf
# ------------------------------------------------------------------------------
# clean
.PHONY: distclean
distclean: clean
$(MAKE) -C 3rdparty clean
# ------------------------------------------------------------------------------
# ------------------------------------------------------------------------------
# internal
www/%: 3rdparty/%.gz
echo $*.gz $@
zcat < 3rdparty/$*.gz > $@
.PHONY: 3rdparty
3rdparty: $(websrcs)
$(MAKE) -C 3rdparty