Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tag: 0.2
Fetching contributors…

Cannot retrieve contributors at this time

40 lines (26 sloc) 0.782 kb
.SUFFIXES: .md .html
all: build
server:
python -m SimpleHTTPServer
chrome:
google-chrome --allow-file-access-from-files
hint:
jshint js/*.js assets/*.js editor/*.js
help: README.html
.md.html:
markdown $< > build/$@
deploy:
git checkout gh-pages
git merge master
git push origin gh-pages
git checkout master
build: concat minify
concat:
cat `grep "<script " game_dev.html | cut -d'"' -f2 | egrep "^libs/"` > build/libs.js
cat `grep "<script " game_dev.html | cut -d'"' -f2 | egrep "(^js/)|(^assets/)"` > build/game.js
minify: concat
cat build/libs.js | uglifyjs -nc --max-line-len 1024 > build/libs.min.js
cat build/game.js | uglifyjs -nc --max-line-len 512 > build/game.min.js
clean:
rm build/*.html
.PHONY: all server chrome hint help deploy build clean
Jump to Line
Something went wrong with that request. Please try again.