JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
basic gameplay working
[hexbog.git] / Makefile
1 all: index.html
2
3 wordlist_compressed.js: compress.coffee wordlist.txt
4         coffee compress.coffee
5
6 main.js: main.coffee
7         coffee -bc main.coffee
8
9 all_min.js: wordlist_compressed.js main.js
10         cat /usr/share/javascript/jquery/jquery.min.js main.js wordlist_compressed.js | uglifyjs -nc -o all_min.js
11
12 index.html: all_min.js main.html
13         (head -n -2 main.html; echo '<script>'; cat all_min.js; echo '</script>'; tail -n 2 main.html) > index.html
14
15 index.html.gz: index.html
16         gzip --best -c $< > $@
17
18 clean:
19         rm -f main.js all_min.js wordlist_compressed.js index.html