0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2024-12-22 07:13:08 -05:00
Squire/Makefile

42 lines
1,008 B
Makefile
Raw Normal View History

2013-01-29 19:11:49 -05:00
.PHONY: all build clean
2014-12-09 01:43:33 -05:00
all: install build build-ui
2011-10-28 22:15:21 -05:00
2014-12-09 01:43:33 -05:00
install:
2014-12-08 04:46:35 -05:00
npm install
2011-10-28 22:15:21 -05:00
clean:
rm -rf build
2014-12-09 01:43:33 -05:00
build-ui: build/Squire-UI.html build/Squire-UI.css build/Squire-UI.js build/assets
2012-03-29 00:26:01 -05:00
2014-12-09 01:43:33 -05:00
build: build/squire.js build/squire-raw.js build/document.html
2014-12-09 01:43:33 -05:00
build/assets:
cp -r source/assets/font-awesome build
2014-07-10 23:57:46 -05:00
cp -r source/assets/jQuery build
cp -r source/assets/bootstrap build
2014-07-10 23:57:46 -05:00
build/Squire-UI.html: source/Squire-UI.html
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
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
mkdir -p $(@D)
cat $^ >$@
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)
cat $^ >$@
build/squire.js: build/squire-raw.js
uglifyjs $^ -c -m -o $@
2011-10-28 22:15:21 -05:00
build/document.html: source/document.html
mkdir -p $(@D)
cp $^ $@