2013-01-29 19:11:49 -05:00
|
|
|
.PHONY: all build clean
|
|
|
|
|
|
|
|
all: build
|
2011-10-28 22:15:21 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2012-03-29 00:26:01 -05:00
|
|
|
build: build/ie8.js build/squire.js build/document.html
|
|
|
|
|
|
|
|
build/ie8.js: source/ie8types.js source/ie8dom.js source/ie8range.js
|
|
|
|
mkdir -p $(@D)
|
2013-01-23 19:53:22 -05:00
|
|
|
uglifyjs $^ -c -m -o $@
|
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)
|
2013-04-07 22:27:06 -05:00
|
|
|
cat $^ >$@
|
|
|
|
|
|
|
|
build/squire.js: build/squire-raw.js
|
2013-01-23 19:53:22 -05:00
|
|
|
uglifyjs $^ -c -m -o $@
|
2011-10-28 22:15:21 -05:00
|
|
|
|
|
|
|
build/document.html: source/document.html
|
|
|
|
mkdir -p $(@D)
|
|
|
|
cp $^ $@
|