-
Notifications
You must be signed in to change notification settings - Fork 13
/
Makefile
72 lines (61 loc) · 2.22 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
60
61
62
63
64
65
66
67
68
69
70
71
72
VERSION = ""
build-all: build-admin build-access
build-admin:
cat static/js/lib/jquery.min.js > static/js/cdr-admin.js
echo "define('jquery-ui', ['jquery'], function ($$) {" >> static/js/cdr-admin.js
cat static/js/lib/jquery-ui.min.js >> static/js/cdr-admin.js
echo "});" >> static/js/cdr-admin.js
cat static/js/admin/lib/jquery.detachplus.js \
static/js/lib/moment.min.js \
static/js/public/src/Structure* \
static/js/admin/src/*.js \
static/js/admin/src/*/*.js \
>> static/js/cdr-admin.js
cat static/css/reset.css \
static/css/cdr_common.css \
static/css/admin/jquery-ui.css \
static/css/admin/jquery.qtip.css \
static/css/admin/jquery.contextMenu.css \
static/css/font-awesome.min.css \
static/css/admin/cdradmin.css \
static/css/admin/search_results.css \
static/css/admin/admin_forms.css \
static/css/admin/collector.css \
static/css/structure_browse.css \
> static/css/cdr_admin.css
ifneq ($(VERSION), "")
for i in static/js/admin/*.js; do \
sed "s/\(urlArgs *: *\)\".*\"/\1\"v=$(VERSION)\"/" $$i > $$i.temp; \
mv $$i.temp $$i; \
done
endif
build-access:
cat static/js/lib/jquery.min.js > static/js/cdr-access.js
echo "define('jquery-ui', ['jquery'], function ($$) {" >> static/js/cdr-access.js
cat static/js/lib/jquery-ui-access.min.js >> static/js/cdr-access.js
echo "});" >> static/js/cdr-access.js
cat \
static/js/public/src/*.js \
>> static/js/cdr-access.js
cat static/css/reset.css \
static/css/cdr_common.css \
static/css/cdrui_styles.css \
static/css/fluid_cap.css \
static/css/font-awesome.min.css \
static/css/structure_browse.css \
static/front/front.css \
static/front/peek.css \
> static/css/cdr_access.css
SUSPEND = "n"
run-access:
cd access && export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=48008,server=y,suspend=$(SUSPEND)"; mvn jetty:run
run-admin:
cd admin && export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=48009,server=y,suspend=$(SUSPEND)"; mvn jetty:run
run-deposit:
cd deposit && mvn exec:exec
ifneq ($(VERSION), "")
for i in static/js/public/*.js; do \
sed "s/\(urlArgs *: *\)\".*\"/\1\"v=$(VERSION)\"/" $$i > $$i.temp; \
mv $$i.temp $$i; \
done
endif