JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
build index.html.gz, add install target
[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 main.js: main.coffee
10         coffee -bc main.coffee
11
12 all_min.js: wordlist_compressed.js main.js
13         cat /usr/share/javascript/jquery/jquery.min.js main.js wordlist_compressed.js | uglifyjs -nc -o all_min.js
14
15 index.html: all_min.js main.html
16         (head -n -2 main.html; echo '<script>'; cat all_min.js; echo '</script>'; tail -n 2 main.html) > index.html
17
18 index.html.gz: index.html
19         gzip --best -c $< > $@
20
21
22 clean:
23         rm -f main.js all_min.js wordlist_compressed.js index.html index.html.gz