-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (34 loc) · 1.24 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
RELEASE := countach
COOKIE := node_runner
APPS := web amqp_client avz cowboy erlydtl gproc kai kvs xmerl lager mimetypes mqs n2o n2o_bootstrap oauth rabbit_common ranch active feeds
VER := 1.0.0
VM := rels/web/files/vm.args
SYS := rels/web/files/sys.config
ERL_ARGS := -args_file $(VM) -config $(SYS)
RUN_DIR ?= ./rels/web/devbox
LOG_DIR ?= ./rels/web/devbox/logs
N2O := deps/n2o/priv/static
FILES := apps/web/priv/static/n2o
BOOTSTRAP := apps/web/priv/static/bootstrap
FONTAWESOME := apps/web/priv/static/font-awesome
N2O_BT := apps/web/priv/static/n2o_bt
FD_UI := apps/web/priv/static/feed_ui
LESSJS := apps/web/priv/static/less.js
default: compile static-link
static-link:
rm -rf $(N2O)
rm -rf $(FILES)
rm -rf $(BOOTSTRAP)
rm -rf $(FONTAWESOME)
rm -rf $(LESSJS)
rm -rf $(N2O_BT)
rm -rf $(FD_UI)
ln -sf ../../n2o_scripts $(N2O)
mkdir -p $(shell dirname $(FILES))
ln -sf ../../../../deps/n2o_bootstrap/priv/static $(N2O_BT)
ln -sf ../../../../deps/feeds/priv/static $(FD_UI)
ln -sf ../../../../deps/n2o/priv/static/n2o $(FILES)
ln -sf ../../../../deps/bootstrap $(BOOTSTRAP)
ln -sf ../../../../deps/font-awesome $(FONTAWESOME)
ln -sf ../../../../deps/less.js $(LESSJS)
include otp.mk