Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
45 lines (35 sloc) 845 Bytes
# See the README for installation instructions.
NODE_PATH ?= ./node_modules
JS_COMPILER = $(NODE_PATH)/uglify-js/bin/uglifyjs
JS_BEAUTIFIER = $(NODE_PATH)/uglify-js/bin/uglifyjs -b -i 2 -nm -ns
JS_TESTER = $(NODE_PATH)/vows/bin/vows
LOCALE ?= en_US
all: \
tributary.js \
tributary.min.js
# Modify this rule to build your own custom release.
.INTERMEDIATE tributary.js: \
src/start.js \
src/core.js \
src/code.js \
src/config.js \
src/context.js \
src/editor.js \
src/gist.js \
src/files.js \
src/controls.js \
src/util.js \
src/batch.js \
src/ui.js \
src/end.js
test: all
@$(JS_TESTER)
%.min.js: %.js Makefile
@rm -f static/$@
$(JS_COMPILER) < static/$< > static/$@
tributary.js: Makefile
@rm -f static/$@
cat $(filter %.js,$^) | $(JS_BEAUTIFIER) > static/$@
@chmod a-w static/$@
clean:
rm -f static/tributary*.js
Something went wrong with that request. Please try again.