mirror of
https://github.com/fastmail/Squire.git
synced 2024-12-22 15:23:29 -05:00
40 lines
1,002 B
Makefile
40 lines
1,002 B
Makefile
.PHONY: all build clean
|
|
|
|
all: build ui
|
|
|
|
clean:
|
|
rm -rf build
|
|
|
|
ui: build/Squire-UI.html build/Squire-UI.css build/Squire-UI.js fonts
|
|
|
|
build: build/ie8.js build/squire.js build/document.html
|
|
|
|
fonts:
|
|
cp -r ui/assets/font-awesome build
|
|
|
|
build/Squire-UI.html: ui/Squire-UI.html
|
|
mkdir -p $(@D)
|
|
cp $^ $@
|
|
|
|
build/Squire-UI.css: ui/Squire-UI.css ui/assets/drop/drop-theme-arrows.css ui/assets/font-awesome/font-awesome.min.css
|
|
mkdir -p $(@D)
|
|
cat $^ >$@
|
|
|
|
build/Squire-UI.js: build/squire-raw.js ui/assets/jQuery/jQuery.js ui/Squire-UI.js ui/assets/drop/drop.min.js
|
|
mkdir -p $(@D)
|
|
cat $^ >$@
|
|
|
|
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 $^ $@
|