X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=3c4d9723895df1353d2c3b36aefe6be36ca9fb64;hp=0000000000000000000000000000000000000000;hb=c5ea138fb8cfce9977ce486c9fbceedebe8af2c4;hpb=2b426ca9467ccfa6ffb5a3e60905650c9f601d7a diff --git a/Makefile b/Makefile new file mode 100644 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 ''; 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