forked from Twipped/Kalendae
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
70 lines (59 loc) · 1.68 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
kal=src/intro_standalone.js \
src/main.js \
src/util.js \
src/auto.js \
src/input.js \
src/MinPubSub.js \
src/moment.js \
src/moment.ext.js \
src/jq.js \
src/outro.js
kmomentless= src/intro.js \
src/main.js \
src/util.js \
src/auto.js \
src/input.js \
src/MinPubSub.js \
src/moment.ext.js \
src/jq.js \
src/outro.js
all: build/kalendae.js build/kalendae.standalone.js
clean:
rm -f build/*.js
minified: build/kalendae.min.js build/kalendae.standalone.min.js
minified-test: build/kalendae.min.errors
build/kalendae.standalone.js: $(kal) src/header.js
cat src/header.js > $@
echo "(function (undefined) {" >> $@
echo "" >> $@
cat $(kal) >> $@
echo "" >> $@
echo "})();" >> $@
build/kalendae.js: $(kmomentless) src/header.js
cat src/header.js > $@
echo "" >> $@
cat $(kmomentless) >> $@
build/kalendae.min.js: build/kalendae.js
cat src/header.js > $@
curl -s \
--data-urlencode 'js_code@build/kalendae.js' \
--data-urlencode 'output_format=text' \
--data-urlencode 'output_info=compiled_code' \
http://closure-compiler.appspot.com/compile \
>> $@
gzip -c build/kalendae.min.js | wc -c
build/kalendae.standalone.min.js: build/kalendae.standalone.js
cat src/header.js > $@
curl -s \
--data-urlencode 'js_code@build/kalendae.standalone.js' \
--data-urlencode 'output_format=text' \
--data-urlencode 'output_info=compiled_code' \
http://closure-compiler.appspot.com/compile \
>> $@
gzip -c build/kalendae.standalone.min.js | wc -c
build/kalendae.min.errors: build/kalendae.js
curl -s \
--data-urlencode 'js_code@build/kalendae.js' \
--data-urlencode 'output_format=text' \
--data-urlencode 'output_info=errors' \
http://closure-compiler.appspot.com/compile