js13kgames2017-muri/Makefile

21 lines
630 B
Makefile
Raw Permalink Normal View History

2017-08-28 22:22:36 +02:00
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
2017-09-13 23:04:33 +02:00
(cd src/assets/images; for i in `ls *.png`; do pngcrush -brute -reduce_palette -ow $$i; done)
2017-08-28 22:22:36 +02:00
(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` && \
2017-09-13 01:14:17 +02:00
echo $$filesize "byte ->" $$((100*$$filesize/13312)) "%"
2017-08-28 22:22:36 +02:00
clean:
rm -f src/muri.min.js muri.zip
2017-08-31 14:56:26 +02:00
.ONESHELL:
2017-08-28 22:22:36 +02:00
.PHONY: build stat clean all