Skip to content

Instantly share code, notes, and snippets.

@rokujyouhitoma
Created June 28, 2012 02:35
Show Gist options
  • Save rokujyouhitoma/3008406 to your computer and use it in GitHub Desktop.
Save rokujyouhitoma/3008406 to your computer and use it in GitHub Desktop.
% cat Makefile
compile:
make lint
make updatedeps
make compilejs
lint:
gjslint --strict -r src/xxx
updatedeps:
python limejs/closure/closure/bin/calcdeps.py \
--dep limejs/closure/closure/goog \
-p src/xxx \
-o deps > src/xxx/deps.js
compilejs:
python limejs/closure/closure/bin/calcdeps.py \
-p limejs/closure/closure/goog \
-p src/xxx \
-p limejs/box2d/src/ \
-p limejs/lime/css/ \
-p limejs/lime/src/ \
-i src/xxx/xxx.js \
-o compiled -c limejs/bin/external/compiler.jar \
-f --compilation_level=ADVANCED_OPTIMIZATIONS \
-f --externs=externs/webkit_dom.js \
-f --externs=externs/webstorage.js \
-f --js=limejs/closure/closure/goog/deps.js \
-f --create_source_map=src/compiled/compiled.map \
-f --warning_level=VERBOSE > src/compiled/compiled.js
init:
mkdir src/compiled
git submodule init
git submodule update
cd limejs;bin/lime.py init
cd tools/closure-compiler-git; ant
cd tools/;svn checkout http://closure-library.googlecode.com/svn/trunk/ closure-library
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment