2013-01-29 19:11:49 -05:00
|
|
|
.PHONY: all build clean
|
|
|
|
|
2014-07-07 18:44:09 -05:00
|
|
|
all: build ui
|
2011-10-28 22:15:21 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf build
|
|
|
|
|
2014-07-11 03:52:17 -05:00
|
|
|
ui: build/Squire-UI.html build/Squire-UI.css build/Squire-UI.js fonts jQuery bootstrap
|
2014-07-06 22:56:59 -05:00
|
|
|
|
2014-07-10 23:57:46 -05:00
|
|
|
build: build/ie8.js build/squire.js build/document.html
|
2012-03-29 00:26:01 -05:00
|
|
|
|
2014-07-08 00:36:25 -05:00
|
|
|
fonts:
|
2014-07-10 23:57:46 -05:00
|
|
|
cp -r source/assets/font-awesome build
|
2014-07-08 00:36:25 -05:00
|
|
|
|
2014-07-10 23:57:46 -05:00
|
|
|
jQuery:
|
|
|
|
cp -r source/assets/jQuery build
|
|
|
|
|
2014-07-11 01:56:31 -05:00
|
|
|
bootstrap:
|
|
|
|
cp -r source/assets/bootstrap build
|
|
|
|
|
2014-07-10 23:57:46 -05:00
|
|
|
build/Squire-UI.html: source/Squire-UI.html
|
2014-07-06 22:56:59 -05:00
|
|
|
mkdir -p $(@D)
|
|
|
|
cp $^ $@
|
|
|
|
|
2014-07-10 23:57:46 -05:00
|
|
|
build/Squire-UI.css: source/Squire-UI.css source/assets/drop/drop-theme-arrows.css source/assets/font-awesome/font-awesome.min.css
|
2014-07-07 00:05:50 -05:00
|
|
|
mkdir -p $(@D)
|
|
|
|
cat $^ >$@
|
|
|
|
|
2014-07-10 23:57:46 -05:00
|
|
|
build/Squire-UI.js: source/Squire-UI.js source/assets/drop/drop.min.js
|
2014-07-06 22:56:59 -05:00
|
|
|
mkdir -p $(@D)
|
|
|
|
cat $^ >$@
|
|
|
|
|
2012-03-29 00:26:01 -05:00
|
|
|
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)
|
2014-07-06 22:56:59 -05:00
|
|
|
cp $^ $@
|