-
Notifications
You must be signed in to change notification settings - Fork 7
/
Makefile
80 lines (53 loc) · 1.47 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
73
74
75
76
77
78
79
80
SHELL=/bin/bash
LANG=C
# basic builds
auto: uncompressed
open: uncompressed
open -a WebKit BUILD/index.html
BUILD:
mkdir -p BUILD
(cd BUILD && ln -s ../i)
# ============
# = versions =
# ============
uncompressed: html raw_js buildcss
# ========
# = html =
# ========
base.html:
cd ../basetheme; make html
cp ../basetheme/BUILD/basetool.html BUILD/
html: BUILD base.html
m4 -P app/app.html.m4 > BUILD/index.html
# ======
# = js =
# ======
super.js:
cd ../basetheme; make js
cp ../basetheme/BUILD/base.js BUILD/
cp ../basetheme/BUILD/super.js BUILD/
raw_js: BUILD super.js
cat BUILD/base.js BUILD/super.js lib/*/*.js app/*.js app/*/*.js > BUILD/viewer.js
min_js: BUILD super.js
cat BUILD/base.js BUILD/super.js lib/*/*.js app/*.js app/*/*.js | jsmin > BUILD/viewer.js
# =======
# = css =
# =======
base.css:
cd ../basetheme; make css
cp ../basetheme/BUILD/base.css BUILD/
cp -R ../basetheme/i/* i/
buildcss: BUILD base.css
cat BUILD/base.css css/*.css app/{chrome,helpers,tools}/*.css > BUILD/viewer.css
# ===========
# = actions =
# ===========
deploy: html raw_js buildcss
rsync -avL --delete --exclude-from=.rsync_exclude BUILD/{i,index.html,viewer.*,demo*.js} [email protected]:gc/public/viewer_experimental/
stage: html raw_js buildcss
rsync -avL --delete --exclude-from=.rsync_exclude BUILD/{i,index.html,viewer.*,demo*.js} [email protected]:/g/viewer/BUILD/
# ==========
# = random =
# ==========
local_demo_data:
cp reference/data/demo*.js BUILD/