js13kgames2015-reverse/Makefile

27 lines
598 B
Makefile
Raw Normal View History

2015-08-24 15:40:02 +02:00
default: compile
compile:
2015-08-24 16:28:52 +02:00
mkdir -p out
babel src/*.js -o out/js13kgames-2015.js
uglifyjs --compress --mangle -- out/js13kgames-2015.js > out/js13kgames-2015.min.js
cp vendor/minified.js out/minified.min.js # ca. 8kb space wasted ...
2015-08-24 15:40:02 +02:00
cp -f src/*.{html,css} out/
rm out/js13kgames-2015.js
2015-08-24 15:40:02 +02:00
zip: compile
rm -f js13kgames2015-aaronfischer.zip
zip -9 -r js13kgames-2015-aaronfischer.zip out/*
stats: zip
ls -al js13kgames-2015-aaronfischer.zip
watch:
while true; do \
2015-08-25 09:16:58 +02:00
make compile; \
2015-08-24 15:40:02 +02:00
inotifywait -qre close_write src/.; \
done
clean:
rm -rf out/
rm js13kgames-2015-aaronfischer.zip