JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
basic gameplay working
[hexbog.git] / Makefile
diff --git a/Makefile b/Makefile
new file mode 100644 (file)
index 0000000..3c4d972
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+all: index.html
+
+wordlist_compressed.js: compress.coffee wordlist.txt
+       coffee compress.coffee
+
+main.js: main.coffee
+       coffee -bc main.coffee
+
+all_min.js: wordlist_compressed.js main.js
+       cat /usr/share/javascript/jquery/jquery.min.js main.js wordlist_compressed.js | uglifyjs -nc -o all_min.js
+
+index.html: all_min.js main.html
+       (head -n -2 main.html; echo '<script>'; cat all_min.js; echo '</script>'; tail -n 2 main.html) > index.html
+
+index.html.gz: index.html
+       gzip --best -c $< > $@
+
+clean:
+       rm -f main.js all_min.js wordlist_compressed.js index.html