-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
35 lines (26 loc) · 841 Bytes
/
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
# GZIP=zopfli -c -i1000
GZIP=gzip -k
FONTS=app/semantic/dist/themes/default/assets/fonts
CSSDIR=static/css
JSDIR=static/js
JS=$(JSDIR)/jquery.min.js \
$(JSDIR)/semantic.min.js \
$(JSDIR)/search.min.js \
$(JSDIR)/dropdown.min.js
CSS=$(CSSDIR)/semantic.min.css \
$(CSSDIR)/search.min.css \
$(CSSDIR)/dropdown.min.css
compile: app/static/app.css app/static/app.js
app/static/app.css:
cat $(CSS) > app/static/app.css
# $(GZIP) app/static/app.css
app/static/app.js:
cat $(JS) > app/static/app.js
# $(GZIP) app/static/app.js
compress:
# closure-compiler --js app/static/app.js --js_output_file app/static/app.min.js -W QUIET
mkdir out
for file in static/icon/*; do $(GZIP) "$$file" > "out/$$file"; done
for file in $(FONTS)/*; do $(GZIP) "$$file" > "out/$$file"; done
clean:
rm -f app/static/app.css* app/static/app.js*