JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
improve tab-completion in source code
[hexbog.git] / Makefile
1 all: index.html index.html.gz
2
3 install: all
4         cp index.html index.html.gz favicon.ico appfog/hexbog.jasonwoof.com/
5
6 wordlist_compressed.js: compress.coffee wordlist.txt
7         coffee compress.coffee
8
9 index.js: main.coffee
10         coffee -bc -o .coffee-tmp main.coffee && mv .coffee-tmp/main.js index.js
11
12 index_min.js: wordlist_compressed.js index.js
13         cat /usr/share/javascript/jquery/jquery.min.js index.js | uglifyjs -nc -o $@
14
15 wordlist_min.js: wordlist_compressed.js index.js
16         cat wordlist_compressed.js | uglifyjs -nc -o $@
17
18 index.css: style.less
19         lessc style.less index.css
20
21 index.html: index_min.js wordlist_min.js template.html index.css
22         bash combine.bash template.html > $@ || (rm -f $@; exit 1)
23
24 index.html.gz: index.html
25         gzip --best -c $< > $@
26
27
28 clean:
29         rm -f index.js index_min.js wordlist_compressed.js wordlist_min.js index.css index.html index.html.gz