SHELL:=/bin/bash all: build stat clean build: rm -f muri-src.zip muri.zip src/muri.min.js uglifyjs --compress --mangle --no-dead-code --output src/muri.min.js src/*.js #(cd src/assets/images; for i in `ls *.png`; do pngcrush -brute -reduce_palette -ow $$i; done) (cd src && zip -q -9 ../muri.zip index.html muri.min.js assets/* assets/**/* vendor/*.min.js) (cd src && zip -q -9 ../muri-src.zip ./* ./**/* ./**/**/* ../README) stat: build @filesize=`stat --printf="%s" muri.zip` && \ echo $$filesize "byte ->" $$((100*$$filesize/13312)) "%" clean: rm -f src/muri.min.js muri.zip .ONESHELL: .PHONY: build stat clean all