forked from Twipped/Kalendae
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
52 lines (43 loc) · 1.19 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
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 > $@
node_modules/.bin/uglifyjs build/kalendae.js --compress --mangle >> $@
gzip -c build/kalendae.min.js | wc -c
build/kalendae.standalone.min.js: build/kalendae.standalone.js
cat src/header.js > $@
node_modules/.bin/uglifyjs build/kalendae.standalone.js --compress --mangle >> $@
gzip -c build/kalendae.standalone.min.js | wc -c