X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=blobdiff_plain;f=Makefile;h=6abf82cd96917ffbc43fff2fe0c1ffaef2f5a365;hp=3c4d9723895df1353d2c3b36aefe6be36ca9fb64;hb=ea321001317a4a3c2a1befa0dfa53597cedbdd92;hpb=c5ea138fb8cfce9977ce486c9fbceedebe8af2c4 diff --git a/Makefile b/Makefile index 3c4d972..6abf82c 100644 --- a/Makefile +++ b/Makefile @@ -1,19 +1,30 @@ -all: index.html +all: index.html index.html.gz + +install: all + cp index.html index.html.gz favicon.ico appfog/hexbog.jasonwoof.com/ wordlist_compressed.js: compress.coffee wordlist.txt coffee compress.coffee -main.js: main.coffee - coffee -bc main.coffee +index.js: main.coffee + coffee -bc -o .coffee-tmp main.coffee && mv .coffee-tmp/main.js index.js + +index_min.js: wordlist_compressed.js index.js + #cat /usr/share/javascript/jquery/jquery.min.js index.js > $@ + cat /usr/share/javascript/jquery/jquery.min.js index.js | uglifyjs -nc -o $@ -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 +wordlist_min.js: wordlist_compressed.js index.js + cat wordlist_compressed.js | uglifyjs -nc -o $@ -index.html: all_min.js main.html - (head -n -2 main.html; echo ''; tail -n 2 main.html) > index.html +index.css: style.less + lessc style.less index.css + +index.html: index_min.js wordlist_min.js template.html index.css + bash combine.bash template.html > $@ || (rm -f $@; exit 1) index.html.gz: index.html gzip --best -c $< > $@ + clean: - rm -f main.js all_min.js wordlist_compressed.js index.html + rm -f index.js index_min.js wordlist_compressed.js wordlist_min.js index.css index.html index.html.gz