X-Git-Url: https://jasonwoof.com/gitweb/?p=hexbog.git;a=blobdiff_plain;f=Makefile;h=962d6ffb018953fa8b42d27a0d86b5d9d0f67a6b;hp=1aba24068a0bf35af97f5640b62b43a9a556d2e2;hb=663ebd9e78fa8337afac364b5c2b140ec60cfb8a;hpb=8e611090cccf3e9ba841f0ad2c280505504c2993 diff --git a/Makefile b/Makefile index 1aba240..962d6ff 100644 --- a/Makefile +++ b/Makefile @@ -9,15 +9,21 @@ wordlist_compressed.js: compress.coffee wordlist.txt 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 +main_min.js: wordlist_compressed.js main.js + cat /usr/share/javascript/jquery/jquery.min.js main.js | uglifyjs -nc -o $@ -index.html: all_min.js main.html - (head -n -2 main.html; echo ''; tail -n 2 main.html) > index.html +wordlist_min.js: wordlist_compressed.js main.js + cat wordlist_compressed.js | uglifyjs -nc -o $@ + +style.css: style.less + lessc style.less style.css + +index.html: main_min.js wordlist_min.js template.html style.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 index.html.gz + rm -f main.js main_min.js wordlist_compressed.js wordlist_min.js style.css index.html index.html.gz