# HG changeset patch # User Matthew Wild # Date 1274929296 -3600 # Node ID e80882a6af57c4b2ff089c282141d87da73f81f2 # Parent 165b36273ce75adbc9372d37b905a8e894e47d1a Update Makefile and squishy to build in gzip diff -r 165b36273ce7 -r e80882a6af57 Makefile --- a/Makefile Thu May 27 04:01:04 2010 +0100 +++ b/Makefile Thu May 27 04:01:36 2010 +0100 @@ -4,11 +4,12 @@ squish: squish.lua squishy ./squish.lua $(OPTIONS) # Bootstrap squish chmod +x squish + ./squish -q gzip # Minify gunzip code ./squish -q debug # Minify debug code - ./squish $(OPTIONS) --with-debug # Build squish with minified debug + ./squish $(OPTIONS) --with-gzip --with-debug # Build squish with minified gzip/debug install: squish install squish /usr/local/bin/squish clean: - rm squish squish.debug + rm squish squish.debug gunzip.lua diff -r 165b36273ce7 -r e80882a6af57 squishy --- a/squishy Thu May 27 04:01:04 2010 +0100 +++ b/squishy Thu May 27 04:01:36 2010 +0100 @@ -37,6 +37,11 @@ Resource "vio" "vio/vio.lua" end +if GetOption "with-gzip" then + Resource "gunzip.lua" "gunzip.lua" + Main "gzip/squish.gzip.lua" +end + if GetOption "with-debug" then Resource "squish.debug" "squish.debug" end