0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 15:23:29 -05:00
Squire/Makefile
Neil Jenkins af1720282c Replace Node prototype extensions with normal fns.
* Firefox was sometimes not finding the extensions on elements.
* This minifies to a smaller target.
2013-04-08 13:27:06 +10:00

23 lines
No EOL
528 B
Makefile

.PHONY: all build clean
all: build
clean:
rm -rf build
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)
uglifyjs $^ -c -m -o $@
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
mkdir -p $(@D)
cat $^ >$@
build/squire.js: build/squire-raw.js
uglifyjs $^ -c -m -o $@
build/document.html: source/document.html
mkdir -p $(@D)
cp $^ $@