2013-01-29 19:11:49 -05:00
|
|
|
.PHONY: all build clean
|
|
|
|
|
2014-12-08 04:46:35 -05:00
|
|
|
all: install build
|
|
|
|
|
|
|
|
intall:
|
|
|
|
npm install
|
2011-10-28 22:15:21 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2014-11-29 08:08:53 -05:00
|
|
|
build: build/squire.js build/document.html
|
2011-10-28 22:15:21 -05:00
|
|
|
|
2013-04-07 22:27:06 -05:00
|
|
|
build/squire-raw.js: source/intro.js source/Constants.js source/TreeWalker.js source/Node.js source/Range.js source/Editor.js source/outro.js
|
2011-10-28 22:15:21 -05:00
|
|
|
mkdir -p $(@D)
|
2015-01-08 00:21:53 -05:00
|
|
|
cat $^ | grep -v '^\/\*jshint' >$@
|
2013-04-07 22:27:06 -05:00
|
|
|
|
|
|
|
build/squire.js: build/squire-raw.js
|
2014-12-08 04:46:35 -05:00
|
|
|
./node_modules/uglify-js/bin/uglifyjs $^ -c -m -o $@
|
2011-10-28 22:15:21 -05:00
|
|
|
|
|
|
|
build/document.html: source/document.html
|
|
|
|
mkdir -p $(@D)
|
2014-11-29 08:08:53 -05:00
|
|
|
cp $^ $@
|