0
Fork 0
mirror of https://github.com/fastmail/Squire.git synced 2025-01-22 06:22:29 -05:00
Squire/Makefile
2014-07-07 13:56:59 +10:00

37 lines
767 B
Makefile

.PHONY: all build clean
all: build
clean:
rm -rf build
ui: build/header.html build/ui.css build/fonts
build: build/ie8.js build/squire.js build/document.html
build/header.html: ui/header.html
mkdir -p $(@D)
cp $^ $@
build/ui.css: ui/ui.css ui/font-awesome.min.css
mkdir -p $(@D)
cat $^ >$@
build/fonts: ui/fonts
mkdir -p $(@D)
cp -r $^ $@
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 $^ $@